Sublime Forum

Dev build 3132, Color Scheme change stops working

#1

Just installed 3132 (Ubuntu 64-bit). Checking out the reported new color schemes, I notice that it gets stuck in one scheme and cannot be changed. Selecting a new color scheme from the “Preferences” menu worked three or four times, but not thereafter.

I don’t know for sure that this is a 3132 problem, as I only tried to change colors due to a note in the release notes and haven’t tried otherwise in a long time.

When I look in the Settings, the “color_scheme” setting is being changed, but the change does not have any effect on my editor window. I’ve quit and restarted several times, and the Settings remain updated with no visual effect. If I delete the “color_scheme” preference line from the settings.

When I switch projects, then I do see the new choice take effect. I notice that the workspace config has a theme mentioned all over the place (not by my direct doing), and that seems to be overriding the settings theme.

0 Likes

#2

Looks like the “color_scheme” property was propagated into the buffer settings for every open buffer; maybe it’s just a problem with one (or more) of the default schemes?

0 Likes

#3

it does indeed sound like the color scheme is set specifically on each view (you can probably thank one of your plugins), thus overriding your preferences- you can clear this by pasting the following in the ST console (View menu -> Show Console) and pressing Enter:

[view.settings().erase('color_scheme') for view in window.views()]
3 Likes

#4

cool thanks. Weird thing is that if it was a plugin (of which I don’t have many) it only “struck” for one scheme after I’d tried a few others

0 Likes

#5

Might be a race condition. I can say from experience by developing and using a plugin like this, that this isn’t exactly reliable.

0 Likes