Home Download Buy Blog Forum Support

Need help with text input in theme file

Need help with text input in theme file

Postby esahc on Sat Jul 20, 2013 4:17 pm

Hi,

I was colorizing the Flatland theme with a copy of it's files. It in turn is based on the Soda theme.

However, whereas the Flatland dark and Soda dark can show "black" backgrounds for the text input, I am stuck with some off white color (around 230 rgb).

I have compared my file to flatland, and even checking each different line I'm not able to solve this.

I have tried to use layer0 tint command -- It doesn't work either. As you'll see in the photo the layer0 tint colors only the part that the file.png is at. It's basically a border around the text input which is not correct.

In an attempt to debug this problem I tried pasting my theme code into the Soda file and activating soda dark in my preferences. Even using word for word all my code in the theme file, the text input is still black like it's supposed to be in soda. So where the heck is this being controlled from? It's obviously not the theme file and I'd like some help figuring this out, because I am just desperately OCD annoyed at this point.

Here is a link to the image: http://imgur.com/J4pIRVP

Here is what it looks like when I activate Flatland Dark but having pasted all the code in my .sublime-theme into it's .sublime-theme: http://imgur.com/vpyrE4q

Honestly I just don't get it. And it's really annoying me. I hope someone can help me out -- it's driving me insane! :D Hahah
esahc
 
Posts: 4
Joined: Sat Jul 20, 2013 4:06 pm

Re: Need help with text input in theme file

Postby KonTrax on Mon Jul 22, 2013 1:29 pm

I've been busy for some time so I would have to recheck but if it could be of any help, check out this gist:
https://gist.github.com/KonTrax/5300769

I will have a look and see if I can find out what I have forgotten.
KonTrax
 
Posts: 46
Joined: Sun Mar 17, 2013 10:24 am

Re: Need help with text input in theme file

Postby esahc on Mon Jul 22, 2013 5:12 pm

I forgot to mention that I am actually still on Sublime Text 2. Regardless the table seems to have values that I've already fiddled with. And as I have said before that even dropping my entire theme file into the Flatland Dark or Soda Dark theme files will result in coloring the background of the text input the way those files want them to be done. So I'm not sure how this is happening, or what file is controlling this, but I'm starting to think it's not the theme file -- I've used a file compare software to check line by line the differences between the Flatland Dark and my theme file.
esahc
 
Posts: 4
Joined: Sat Jul 20, 2013 4:06 pm

Re: Need help with text input in theme file

Postby KonTrax on Tue Jul 23, 2013 2:35 pm

Change color value in Widgets.stTheme

Code: Select all
            <key>background</key>
            <string>#E6E6E6</string>
KonTrax
 
Posts: 46
Joined: Sun Mar 17, 2013 10:24 am

Re: Need help with text input in theme file

Postby esahc on Tue Jul 23, 2013 4:20 pm

I feel so stupid. I had already tweaked that file but gave up originally. The change has no effect on my files, but it worked on the flatland dark file when I restarted sublime. So I activated it and noticed extra files that were placed in there and I got it working on mine now too

Key seems to be in the file widget XXX.sublime-settings that pointed to the stTheme file:

Code: Select all
{
    "color_scheme": "Packages/Theme - Solarized/Light/Widget - Solarized Light.stTheme",
    "draw_shadows": false
}


I did this and I finally finally have it working. I don't think you know how happy you've made me. This kind of crap bothers the hell outta me, haha -- Thank you so much and mea culpa for such a stupid mistake that I was making.
esahc
 
Posts: 4
Joined: Sat Jul 20, 2013 4:06 pm

Re: Need help with text input in theme file

Postby KonTrax on Tue Jul 23, 2013 4:36 pm

Hehe. I do know what you mean, the small things are the worst. More or less the only reason I learn new languages and everything that stands between me and the solutions to those small but o so frustrating "paper-cuts".
KonTrax
 
Posts: 46
Joined: Sun Mar 17, 2013 10:24 am


Return to General Discussion

Who is online

Users browsing this forum: applejosh and 9 guests