Skip to content

Instantly share code, notes, and snippets.

@Seldaek
Created January 13, 2012 09:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Seldaek/1605300 to your computer and use it in GitHub Desktop.
Save Seldaek/1605300 to your computer and use it in GitHub Desktop.
Patch for Sublime Text 2 "highlight_modified_tabs" (missing in b2165)
/* 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
}
@Seldaek
Copy link
Author

Seldaek commented Jan 13, 2012

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.

@tdave
Copy link

tdave commented Jan 13, 2012

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
}

@tdave
Copy link

tdave commented Jan 13, 2012

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment