Sublime Forum

How do i change the color of the line numbers gutter?

#1

The color of the line numbers vertical gutter bar has a white background. I would like to shade it a little darker so it stands out form where the text starts which is also white in my theme.

Any ideas how I could do that?

0 Likes

#2

Check out the gutter section of http://www.sublimetext.com/docs/3/color_schemes.html.

0 Likes

#3

I did, I am using IDLE theme and tried to add gutter color it to the .thThemer file but does not work. Anything more specific on where you add this?

0 Likes

#4

Steps to do so:

  1. Extract IDLE.tmTheme to Packages/User/IDLE.tmTheme
  2. Open the copied file
  3. Add the following lines
		<dict>
			<key>settings</key>
			<dict>
				<key>background</key>
				<string>#FFFFFF</string>

                                <!--- ... -->

				<key>gutter</key>
				<string>#BFBFBF</string>
				<key>gutterForeground</key>
				<string>#3D4752</string>
			</dict>
		</dict>

  1. Save the file
  2. Open Command Pallet
  3. Search for UI: Select Color Scheme
  4. Select IDLE (be sure the second line of the item shows Packages/User/)
1 Like

#5

Wow that worked! I think its steps 3 and 4 I was missing.

Not sure why I had to do steps 3 and 4 though. I thought I could just select color scheme from Preferences > Color Schemes - Legacy and clicked IDLE. Obviously this is a different menu altogether because I also found it under Preferences > Color Schemes > User > Color Highlighter > themes. So it seems there are 2 versions.

But thanks!

0 Likes

#6

This is the point. Color schemes are not merged if several files exist. You must specify the exact path to the file you want to apply. This is a little bit different to themes, which are merged together to one dataset, if several files of the same name exist.

0 Likes