Sublime Forum

Changing theme key not working

#1

Hello, this is my user settings:

“color_scheme”: “Packages/User/SublimeLinter/Espresso Soda (SL).tmTheme”,
“theme”: “Soda Light 3.sublime-theme”

So as you can see, I’m using soda theme with a custom espresso color scheme. I want to change the color of the comments, so I go to my espresso file, and in the following part:

        <dict>
            <key>name</key>
            <string>Comments</string>
            <key>scope</key>
            <string>comment, comment punctuation</string>
            <key>settings</key>
            <dict>
                <key>fontStyle</key>
                <string></string>
                <key>foreground</key>
                <string>#ADADAD</string>
            </dict>
        </dict>

So, in theory I should change #ADADAD with my preferred color. But is not working. Comments not change the color.

0 Likes

#2

Which file did you edit in particular?

SublimeLinter auto-copies any color scheme you specify and adds its own entries at the end of it (which you can see from the weird path). You have to manually re-select your original color scheme to make SL re-generate its custom file. Alternatively, you could just add SL’s settings to the original file (recommended) so that it doesn’t generate its own file anymore.

0 Likes

#3

Let me see if I understand… So sublime linter auto copies the color scheme selected. So if change the original file, it doesn’t reflect the changes ?

What do you mean with adding SL’s setting to the original file ?

Thanks.

EDIT:
I’m editing this file: “Packages/User/SublimeLinter/Espresso Soda (SL).tmTheme”, the one that appears in color_schema key in my user settings.

0 Likes

#4

If you’re editing SL’s file then changes should apply immediately.

0 Likes

#5

Ok, I go directly to that file, and is working now. So if I’m not editing the SL file, how I update the other file ?

0 Likes

#6

If it’s within a .sublime-package (likely when you installed it using Package Control), you can easily override that using https://packagecontrol.io/packages/PackageResourceViewer.

0 Likes

#7

Ok, nice. It’s working. Thanks.

0 Likes