Skip to content

Instantly share code, notes, and snippets.

@tomjn
Created September 4, 2013 10:55
Show Gist options
  • Save tomjn/6435497 to your computer and use it in GitHub Desktop.
Save tomjn/6435497 to your computer and use it in GitHub Desktop.
Grab the assets from https://github.com/EleazarCrusader/nexus-theme, add to your sublime theme, and ammend the paths accordingly to add tab colour coding
{
// - Tab close state
"class": "tab_control",
"settings": ["show_tab_close_buttons"],
"content_margin": [20, 0, 20, 7]
},
{
// - Hover tab state
"class": "tab_control",
"attributes": ["hover"],
"layer2.opacity": 1.0
},
{
// - Active tab state
"class": "tab_control",
"attributes": ["selected"],
"layer0.opacity": 0.0,
"layer1.opacity": 1.0,
"layer2.opacity": 0.0
},
{
// - Modified tab state
"class": "tab_control",
//"settings": ["highlight_modified_tabs"],
"attributes": ["dirty"],
"layer0.texture": "Theme - Void/assets/tab-inactive-modified.png",
"layer1.texture": "Theme - Void/assets/tab-active-modified.png",
"layer2.texture": "Theme - Void/assets/tab-hover-dirty.png"
},
// - Inactive tab label
{
"class": "tab_label",
"fg": [180, 180, 180],
"shadow_color": [0, 0, 0, 200],
"shadow_offset": [0, 1]
},
// - Active tab label
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["selected"]}],
"shadow_color": [0, 0, 0, 165],
"shadow_offset": [0, 1],
"fg": [240, 240, 240, 255]
},
// - Hover tab label
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["hover"]}],
"shadow_color": [0, 0, 0, 165],
"shadow_offset": [0, 1],
"fg": [100, 240, 240, 255]
},
// - Dirty Hover tab label
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["hover", "dirty"]}],
"shadow_color": [0, 0, 0, 165],
"shadow_offset": [0, 1],
"fg": [206, 84, 2, 255]
},
// - Dirty inactive tab label
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["dirty"]}],
"settings": ["highlight_modified_tabs"]
},
// - Dirty active tab label
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["selected", "dirty"]}],
"settings": ["highlight_modified_tabs"]
},
{
"class": "tabset_control",
"layer0.texture": "Theme - Void/assets/tabset-bg.png",
"layer0.inner_margin": [2, 6],
"layer0.opacity": 1.0,
"content_margin": [-13, 0, -13,-6], // left, top, right, bottom
"tab_overlap": 25,
"tab_width": 150,
"tab_min_width": 40,
"tab_height": 32,
"mouse_wheel_switch": false
},
{
"class": "tabset_control",
"settings": ["mouse_wheel_switches_tabs"],
"mouse_wheel_switch": true
},
{
"class": "tree_row",
"layer0.texture": "Theme - Void/assets/row-active.png",
"layer0.opacity": 0.0,
"layer0.inner_margin": [8, 3],
"layer1.opacity": 0.0,
"layer1.inner_margin": [8, 3]
},
// - Sidebar row selected
{
"class": "tree_row",
"attributes": ["selected"],
"layer0.opacity": 1.0
},
// - Sidebar row dirty
{
"class": "tree_row",
"attributes": ["dirty"],
"layer0.texture": "Theme - Void/assets/row-inactive-modified.png",
"layer0.opacity": 0.5
},
// - Sidebar row selected dirty
{
"class": "tree_row",
"attributes": ["selected", "dirty"],
"layer0.texture": "Theme - Void/assets/row-active-modified.png",
"layer0.opacity": 1.0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment