Sublime Forum

Theme customisation, Build 4107

#1

All themes seem to be using the same colour (#303841) for the background of an active sheet, and even with ‘Customize Theme’ settings I am unable to change this through modifications to any variable contained within the standard .sublime-theme files (tested with Adaptive, and Default Dark).

I was able to modify every other element I tried including the background colour of the non-focused sheet, which is still not an ideal method of a 0% blend on the “sheet_medium_dark_modifier” variable (working as seen on the Customize Theme window for example), but still the background colour of the focused sheet seems to be a variable that is either non-functional or omitted from the theme file.

0 Likes

#2

I believe the color of an active sheet comes from the color scheme that you’re using; the theme dims the inactive sheets by using the background_modifier: (though I don’t tend to mess with themeing in the general case, so I may be talking out of my butt).

		{
			"class": "sheet_contents",
			"settings": {
				"inactive_sheet_dimming": true,
				"file_tab_style": ["", "rounded", "square"],
			},
			"attributes": ["file_dark", "!highlighted"],
			"background_modifier": "var(sheet_dark_modifier)"
		},
0 Likes

#3

Yeah what you are saying is also what I discovered, which is kind of the issue - that a theme file (supposedly) can’t theme the largest area of screen real estate in the program in its active state.

On Win10 changing the accent colour or switching between Light and Dark OS setting sees no change to the element, as well as all four of the built-in sublime text themes (auto, default, default dark, adaptive) displaying that same colour.

0 Likes

#4

ST distinguishes between color schemes and themes. Allowing themes to override color schemes has several implications as both can be selected independendly. It might work well as long as a theme is “adaptive” and derives colors from color scheme, but fails with all other default themes, which may use totally different colors than color schemes.

For further explanations about how and why it is implemented as it is, please refer to https://github.com/sublimehq/sublime_text/issues/2041#issuecomment-765531886

0 Likes

#5

Right I think I get you now - I have to use the combination of colour scheme and theme edits to achieve the style I want after the new version disrupted the appearance. No worries.

0 Likes