In Sublime Text 2
editor, we can change the "Text Color" of "Modified/Edited Tabs" by using "highlight_modified_tabs": true
like that. It works.
But it is bright red, how can i change the text color
of it?
Then in Preferences > Browse Packages > User, create a new file and call it Default. sublime-theme (be sure that the extension is in . sublime-theme). Then you can change the sidebar color by changing the RGB values of “Background color”.
Trigger the Command Palette by pressing Ctrl+Shift+P (on Windows) or Command+Shift+P (on Mac) and search for UI. Your top 2 results should be UI: Select Theme and UI: Select Color Scheme. Choose UI: Select Color Scheme and you should be able to find your custom theme as one of the options.
The correct location for these settings is in the packages folder for your installation (which can be opened using Preferences -> Browse Packages
) inside the Theme - Default
directory, in a file named Default.sublime-theme
Somewhere around line 570, the tab labels are configured.
They look a bit like this:
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_light"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [125, 00, 125]
},
You want to configure the ones whose settings
attribute is set to ["highlight_modified_tabs"]
. Change the fg
property to the desired RGB value.
There are four different sections to change, and they seem to correspond to the shade of the tab background.
Note that it's not necessary to modify the default theme where it is. You can create a new file named Default.sublime-theme
in the User
packages directory, and store only your changes which will be applied after the main theme file.
I copy and pasted the four highlight_modified-tabs
sections and modified the two that I wanted.
[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]
}
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With