在Sublime Text 2编辑器中,我们可以像这样使用"highlight_modified_tabs": true来更改“修改/编辑的标签”的“文本颜色”。它起作用了。
但是它是鲜红的,我怎么能改变它的text color呢?
发布于 2013-02-07 10:32:17
从Trevor Senior那里得到了答案
The color schemes in sublime text are located in your sublime packages. In the menu navigate to Preferences -> Browse Packages... and they will all be listed in the Color Scheme - Default发布于 2013-07-29 15:36:42
这些设置的正确位置位于Theme - Default目录下名为Default.sublime-theme的文件中的安装包文件夹中(可使用Preferences -> Browse Packages打开
在第570行附近的某个地方,配置了选项卡标签。
它们看起来有点像这样:
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_light"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [125, 00, 125]
},您想要配置其settings属性设置为["highlight_modified_tabs"]的节点。将fg属性更改为所需的RGB值。
有四个不同的部分需要更改,它们似乎与选项卡背景的阴影相对应。
请注意,没有必要修改默认主题所在的位置。您可以在User包目录中创建一个名为Default.sublime-theme的新文件,并且只存储将在主主题文件之后应用的您的更改。
我复制并粘贴了四个highlight_modified-tabs部分,并修改了两个我想要的部分。
packages/User/Default.sublime-theme
[
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_light"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [125, 00, 125]
},
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_medium"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [125, 00, 125]
},
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_medium_dark"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [255, 161, 52]
},
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_dark"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [255, 161, 52]
}
]https://stackoverflow.com/questions/14685989
复制相似问题