Home Download Buy Blog Forum Support

How To Change Selected Text color in Sunburst

How To Change Selected Text color in Sunburst

Postby freddyfrog on Sun Jul 29, 2012 7:03 pm

So in the menus ST2 says my theme is set to Sunburst. In my user settings its set to Soda-dark. I don't understand why two themes but it mostly works. In my User directory I have a copy of Soda Dark.sublime-theme and changing settings in there works great.
*Except* - some things are defined further back in the chain - color of selected text styled in

Color Scheme - Default/Sunburst.tmTheme

which is in XML not json. Changing stuff in there works but its a bad place to change it - changes that need to survive upgrades ought IMHO to be in User. Changing a copy of that file in User doesn't seem to work.

What's the process here, how can I go about editing this XML file without my edits being destroyed on upgrade - do I have to give it a name of a particular form in User ? Do I have to process it somehow to convert it from xml to json ? Love this editor but a bit lost on how its architecture works - where and how is the xml processed and that sort of thing - documentation isn't polished yet AFAI can see. My guess would be the XML becomes settings that are then possibly modified by json style settings but just a guess.

Please advise.

andy
freddyfrog
 
Posts: 10
Joined: Wed May 09, 2012 1:42 pm

Re: How To Change Selected Text color in Sunburst

Postby C0D312 on Sun Jul 29, 2012 7:14 pm

First of all:
theme != color_scheme

viewtopic.php?f=2&t=8288&p=34505&hilit=theme+colorscheme#p34505

To make changes to your colorscheme, duplicate the colorscheme in Color Scheme - Default and name it whatever you want. You'll have to rename it within the colorscheme file as well. The Colorscheme folder doesn't get overridden; the default colorschemes do occasionally (although, I think Jon only modifies the monokai theme) so your custom colorscheme will be fine. However, you could just make a new folder called Color Scheme - User/ if you want. It doesn't matter where it is so much as you make the change in the User Settings folder.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: How To Change Selected Text color in Sunburst

Postby freddyfrog on Mon Jul 30, 2012 6:30 am

Thanks John,

What are the cache files matching the names of the xml files in Color Scheme - Default ?

andy
freddyfrog
 
Posts: 10
Joined: Wed May 09, 2012 1:42 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 30 guests