Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime text 2 - Change side bar color

Tags:

What is the way to change the color of the side bar (file browser)? What do I need to add to my .tmTheme file to modify the defaults?

Using a dark theme the side bar can be too bright for my taste.

like image 982
Ohad Avatar asked Nov 27 '12 09:11

Ohad


People also ask

How do I change the color of the sidebar in Sublime Text?

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”.

How do I use sidebar in Sublime Text?

You have to add a folder to the Sublime Text window in order to navigate via the sidebar. Go to File -> Open Folder... and select the highest directory you want to be able to navigate. Also, 'View -> Sidebar -> Show Sidebar' if it still doesn't show.


2 Answers

You want to go into your

~/Library/Application Support/Sublime Text 2/Packages/Default/Default.sublime-theme 

(old version) or

~/Library/Application Support/Sublime Text 2/Packages/Theme-Default/Default.sublime-theme  

(new version) and edit these things:

  • "class": "sidebar_container"
  • "class": "sidebar_tree"
  • "class": "sidebar_heading"
  • "class": "sidebar_label"

Therein you can change the RGB colors until you get what you want.

Here is a thread that discusses this in greater detail.

edit: added the correct location provided by @Michael Tunnell

edit: Sample Dark SideBar Configuration.

Image with Dark SideBar

Click to See Larger Image for Settings Click to See Larger Image for Settings

like image 67
AGS Avatar answered Jan 01 '23 20:01

AGS


AGS is right but they recently changed the location of the default theme file.

As of now it is at Packages/Theme - Default/Default.sublime-theme

The "Packages/Default" folder contains other non-theme related files now.

like image 41
Michael Tunnell Avatar answered Jan 01 '23 21:01

Michael Tunnell