Home Download Buy Blog Forum Support

Swap active tab color

Swap active tab color

Postby ludder on Sat Jan 14, 2012 9:14 pm

I use a dark color scheme (Monokai). When I work in 2-columns mode and have 2 open files in group 1 and 1 open file in group 2, it's very ambigious what the active tab is. My proposal:
  • Make the active tab lighter, not darker, than the other tabs.
  • Don't hightlight the active tab in inactive groups.
I'm curious to see if others share my opinion.
ludder
 
Posts: 15
Joined: Tue Nov 29, 2011 9:44 pm

Re: Swap active tab color

Postby rmaksim on Sun Jan 15, 2012 10:58 pm

ludder wrote:Make the active tab lighter, not darker, than the other tabs.

in file /Packages/Theme - Default/Default.sublime-theme find
Code: Select all
    {
        "class": "tab_control", "attributes": ["selected", "file_dark"],
        "tint_modifier": [0, 0, 0, 0],
        "layer2.texture": "Theme - Default/dark_selected_tab_bg.png",
        "layer2.opacity": 1,
        "layer0.opacity": 1.0
    },

and replace color in
Code: Select all
"tint_modifier": [0, 0, 0, 0],

for example on
Code: Select all
"tint_modifier": [255, 255, 255, 100],
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Swap active tab color

Postby ludder on Thu Jan 19, 2012 12:45 pm

At first glance this didn't seem to work, but it appeared that the color scheme I use now (Blackboard) is not "dark", but "medium-dark".
Thanks!

Btw, are these settings overwritten when ST2 upgrades?
ludder
 
Posts: 15
Joined: Tue Nov 29, 2011 9:44 pm

Re: Swap active tab color

Postby sublimator on Thu Jan 19, 2012 1:28 pm

Keep your changes in `Packages/User/Default.sublime-theme`
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Swap active tab color

Postby ludder on Thu Jan 19, 2012 4:21 pm

Excellent! FWIW, my Default.sublime-theme:
Code: Select all
[
{
  "class": "tab_control", "attributes": ["selected", "file_medium_dark"],
  "tint_modifier": [255, 255, 255, 60]
}
]
ludder
 
Posts: 15
Joined: Tue Nov 29, 2011 9:44 pm

Re: Swap active tab color

Postby roychen on Thu Jan 19, 2012 4:29 pm

Thank you all for this great sharing!! This is really useful to me.... :D
roychen
 
Posts: 5
Joined: Thu Jan 12, 2012 2:07 pm

Re: Swap active tab color

Postby tanepiper on Thu Jan 19, 2012 4:55 pm

Nice job, thanks for sharing - definitely think this would make sense being a ST2 default.
tanepiper
 
Posts: 68
Joined: Sun Nov 06, 2011 6:40 am

Re: Swap active tab color

Postby donpdonp on Sat Nov 24, 2012 12:17 am

this is huge! one of those things I've wanted to change for many months but was unsure how to. Yes this should be the default for dark themes. It was driving me nuts for a long time.
donpdonp
 
Posts: 1
Joined: Sat Nov 24, 2012 12:15 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests