Sublime Forum

Changing highlight_modified_tabs color

#1

How can I change highlight_modified_tabs color with the new adaptive theme? It’s strangely blue by default.

0 Likes

#2
  1. Install Package​Resource​Viewer via PackageControl
  2. Via the command palette run Open Resource
  3. Select “Theme - Default” and then “Default.sublime-theme” (or Adaptive)
  4. Create a new file in Packages/User also called “Default.sublime-theme” (or Adaptive)
  5. Open that new file and start with []
  6. Find the element you’re looking for
  7. The docs are helpful too
  8. Add what you want to change inside the []

Example:

[
  {
    "class": "text_line_control",
    "content_margin": [4, 6, 4, 4]
  },
  {
  	"class": "tab_control",
  	"accent_tint_modifier": [255, 0, 0, 100]
  }
]

In this particular case, if you add that change for tab_control to an Adaptive.sublime-theme file in your user directory it will mix some red into the highlight. You can tweak it further if you want.

0 Likes

Display box in the right column really difficult to spot
#3

Rather than modifying the theme, the simpler way is to modify your color scheme. The highlight color in the Default and Adaptive themes is controlled by your color scheme.

Go to http://www.sublimetext.com/docs/3/color_schemes.html#global_settings and look for “accent”. You’ll see it references the highlight_modified_tabs setting.

  1. Install Package​Resource​Viewer via PackageControl
  2. Via the command palette run Open Resource
  3. Select the package that contains your color scheme, and then the color scheme .tmTheme file itself.
  4. Add an accent global setting
  5. Save

@braver With themes, an override is not necessary. Themes combine with other files of the same name. You can create a file named Packages/User/Default.sublime-theme to add customizations without overriding the whole file. This way users can tweak things without missing out on new features added in the future.

2 Likes

#4

I hoped to suggest exactly this but perhaps it wasn’t clear enough. Definitely don’t override the entire thing!

0 Likes

#5

How would that work for updates to color schemes though? Won’t you lose the accent?

0 Likes