public
Created

Patch for Sublime Text 2 "highlight_modified_tabs" (missing in b2165)

  • Download Gist
Default.sublime-theme
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* Path: Packages/Theme - Default/Default.sublime-theme, add add the end before the ']' */
 
/* Patch for highlight_modified_tabs */
,{
"class": "tab_control", "attributes": ["dirty"],
"tint_modifier": [255, 255, 0, 230],
"layer0.texture": "Theme - Default/dark_tab_mask3.png",
"layer2.texture": "Theme - Default/dark_unselected_tab_bg2.png",
"layer2.opacity": 1.0
},
{
"class": "tab_control", "attributes": ["selected", "file_light_dark", "dirty"],
"tint_modifier": [155, 155, 0, 255],
"layer2.texture": "Theme - Default/dark_selected_tab_bg.png",
"layer2.opacity": 1,
"layer0.opacity": 1.0
}

Note that this is made for a light dark theme (monokai), for other themes you may need to change file_light_dark to file_dark or file_light or file_medium_dark.

big thanks, this helps a lot. here is my tweaked version which also more obviously highlights the currently selected tab. (note that i'm using the monokai bright theme.)

/* Patch for highlight_modified_tabs */
,
{
"class": "tab_control",
"attributes": [ "selected"],
"tint_modifier": [155, 155, 155, 155],
"layer2.texture": "Theme - Default/light_selected_tab_bg.png",
"layer2.opacity": 0.5,
"layer0.opacity": 1.0
}
,{
"class": "tab_control",
"attributes": ["dirty"],
"tint_modifier": [255, 255, 0, 230],
"layer0.texture": "Theme - Default/dark_tab_mask3.png",
"layer2.texture": "Theme - Default/dark_unselected_tab_bg2.png",
"layer2.opacity": 1.0
},
{
"class": "tab_control",
"attributes": [ //"selected",
"file_light_dark", "dirty"],
"tint_modifier": [155, 155, 255, 255],
"layer2.texture": "Theme - Default/light_selected_tab_bg.png",
"layer2.opacity": 1,
"layer0.opacity": 1.0
}

continued to play with this - here's an updated version of the above which i'm liking better. :)

{
    "class": "tab_control", 
    "attributes": ["selected"],
    "tint_modifier": [75, 75, 75, 75],
    "layer2.texture": "Theme - Default/light_selected_tab_bg.png",
    "layer2.opacity": 1,
    "layer0.opacity": 1.0
},
{
    "class": "tab_control", 
    "attributes": ["dirty"],
    "tint_modifier": [255, 255, 0, 230],
    "layer0.texture": "Theme - Default/dark_tab_mask3.png",
    "layer2.texture": "Theme - Default/dark_unselected_tab_bg2.png",
    "layer2.opacity": 1.0
},
{
    "class": "tab_control", 
    "attributes": [ "file_light_dark","dirty"],
    "tint_modifier": [155, 155, 255, 255],
    "layer2.texture": "Theme - Default/dark_selected_tab_bg.png",
    "layer2.opacity": 1,
    "layer0.opacity": 1.0
},
{
    "class": "tab_control", 
    "attributes": [ "selected",
        "file_light_dark","dirty"],
    "tint_modifier": [155, 155, 255, 255],
    "layer2.texture": "Theme - Default/light_selected_tab_bg.png",
    "layer2.opacity": 1,
    "layer0.opacity": 1.0
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.