kolinkrewinkel / Polychromatic

Semantic highlighting for Xcode.
http://kolinkrewinkel.com/
MIT License
1.05k stars 69 forks source link

Settings are resetting after closing Xcode #68

Closed tbaranes closed 9 years ago

tbaranes commented 9 years ago

Hi,

Really great tools. Love it Just a question, each time I restart my mac, and reopen Xcode, my saturation and brightness are back to 0. Why their values are not saved permanently? Did I miss something?

kolinkrewinkel commented 9 years ago

In ~/Library/Developer/Xcode/UserData/FontAndColorThemes/, in the color theme you're modifying, at the bottom of the file you should see keys for "PLYVar___" What are the values? (Before restart but after quitting Xcode)

tbaranes commented 9 years ago

This is the value after restarting, but before launching (I know it's what you asked, but something wrong are in these values):

<key>PLYVarBrightness</key>
<real>0.87937700748443604</real>
<key>PLYVarSaturation</key>
<real>0.44501984119415283</real>

So, these values are the one I choose last time I started Xcode, but once I opened xcode again, if I go in the preferences, the saturation and brightness will be back to 0.

Looks like my values are well stored, but just not reloaded in Xcode

tbaranes commented 9 years ago

In fact, it's always after closing Xcode, not link to shut down the mac

kolinkrewinkel commented 9 years ago

What version of Xcode and OS X are you running? In addition, do you see any Console errors? I remember we dealt with something like this before, but it's odd that it'd be able to read the rest of the theme except these keys.

tbaranes commented 9 years ago

Oh, I understood my error by reading your answer, I'm using the tool with one of the native theme (dusk). Just try it with one of your theme, working well.

Nevermind, sorry for time lost and thanks for the help~

kolinkrewinkel commented 9 years ago

Not a problem, this is still an issue I'd like to resolve. The native themes don't play nice with being modified, but if you still wanna use it, you can duplicate it/move it to the user directory where others are stored and set the brightness/saturation vars.

tbaranes commented 9 years ago

In fact, the tool is working perfectly with them. The only issue is that they are not refreshing when restarting Xcode. I will do as you say, duplicate them, that's a good idea. Thanks for it!

Wait, I don't know what happen between today and yesterday, but the native theme has been moved to your directory. Now, the native theme is working perfectly even after closing Xcode.