Text color

Forum rules
Before you post please read how to get help
Post Reply
trippin
Level 3
Level 3
Posts: 107
Joined: Wed May 20, 2015 11:33 pm

Text color

Post by trippin » Mon Apr 04, 2016 3:00 pm

Im trying to find the location of the text color in cinnamon. for example say you are in your downloads folder. all the text under your folders, other directories, where it says File Edit View ect.

I have a theme that has blue text and id like to bring that to my current theme.

Habitual
Level 13
Level 13
Posts: 4870
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Text color

Post by Habitual » Mon Apr 04, 2016 3:26 pm

Are you sure you want to risk it after the "clementine incident"?

trippin
Level 3
Level 3
Posts: 107
Joined: Wed May 20, 2015 11:33 pm

Re: Text color

Post by trippin » Mon Apr 04, 2016 3:40 pm

Habitual wrote:Are you sure you want to risk it after the "clementine incident"?
iv got nothing to lose and everythings backed up

elbullazul
Level 2
Level 2
Posts: 50
Joined: Wed Aug 12, 2015 1:41 pm

Re: Text color

Post by elbullazul » Mon Apr 04, 2016 6:56 pm

let's see, you want to edit your system-wide text color, right? (say, nemo, gimp, system settings...)

if you're using a custom theme, back it up and then place a copy in ~/.themes. rename it to a name of your taste.

next, open the gtk-2.0 folder and open the gtkrc archive. Edit every value having "fg" in it (ex. menubar_fg_color, fg_color) + the text_color hex values with your custom ones.

after this, go back to your theme folder and open the gtk-3.0 folder. Then, edit gtk.css (it may be gtk-main.css) also edit every value with "fg" in its name followed by a hex value + the text_color hex with the same custom values as in gtkrc

open your theme tool and choose your custom theme. Text color should change instantly if everything is done well.

I'll be glad to assist you if you wish to customize a little bit more your style.

trippin
Level 3
Level 3
Posts: 107
Joined: Wed May 20, 2015 11:33 pm

Re: Text color

Post by trippin » Tue Apr 05, 2016 1:15 am

elbullazul wrote:let's see, you want to edit your system-wide text color, right? (say, nemo, gimp, system settings...)

if you're using a custom theme, back it up and then place a copy in ~/.themes. rename it to a name of your taste.

next, open the gtk-2.0 folder and open the gtkrc archive. Edit every value having "fg" in it (ex. menubar_fg_color, fg_color) + the text_color hex values with your custom ones.

after this, go back to your theme folder and open the gtk-3.0 folder. Then, edit gtk.css (it may be gtk-main.css) also edit every value with "fg" in its name followed by a hex value + the text_color hex with the same custom values as in gtkrc

open your theme tool and choose your custom theme. Text color should change instantly if everything is done well.

I'll be glad to assist you if you wish to customize a little bit more your style.
thanks it worked perfectly :D now all im trying to do is add a glow to my window boarders like in this video https://www.youtube.com/watch?v=XKFR6fnxlKg id also like to learn how to make windows transparent if you know. thanks again :D id been looking forever :D :D

Penn
Level 5
Level 5
Posts: 753
Joined: Tue Jun 10, 2014 1:12 pm

Re: Text color

Post by Penn » Fri Apr 08, 2016 5:28 pm

trippin wrote: now all im trying to do is add a glow to my window boarders like in this video https://www.youtube.com/watch?v=XKFR6fnxlKg id also like to learn how to make windows transparent if you know. thanks again :D id been looking forever :D :D
That theme is designed for KDE which can do things gtk can't.

To my understanding neither can be done unless the developers decide to make it possible (I've heard it is the compositor that needs changing so maybe you can find a workaround changing that directly).

In the case of that glow it seems to me it's actually the window shadow. If you find out how to change the shadow of basic windows tell us in this thread since I'm sure others would like to do this, myself included. I could be wrong with shadow because I know it is possible to change the shadows on secondary boxes such as the menu or pop-up boxes in gtk.

If I am wrong about shadows being in compositor then my next guess is it would be in metacity since borders are in there. Those borders may be a workaround to get the glow in a different way (though maybe not as nice which is why I don't do it). If you are using the Mint-X theme it is the metacity-theme-3.xml . You can just change the constant value of "C_border_focused" and the unfocused variant below it to get the color. You can also change the width of the borders by looking where the constant value is used later in the theme (that's a bit more complex so I won't give step by step).

It has been a while since I tried to figure out how to do both the things you want to do, so maybe something has changed.

trippin
Level 3
Level 3
Posts: 107
Joined: Wed May 20, 2015 11:33 pm

Re: Text color

Post by trippin » Mon Apr 11, 2016 11:50 pm

Penn wrote:
trippin wrote: now all im trying to do is add a glow to my window boarders like in this video https://www.youtube.com/watch?v=XKFR6fnxlKg id also like to learn how to make windows transparent if you know. thanks again :D id been looking forever :D :D
That theme is designed for KDE which can do things gtk can't.

To my understanding neither can be done unless the developers decide to make it possible (I've heard it is the compositor that needs changing so maybe you can find a workaround changing that directly).

In the case of that glow it seems to me it's actually the window shadow. If you find out how to change the shadow of basic windows tell us in this thread since I'm sure others would like to do this, myself included. I could be wrong with shadow because I know it is possible to change the shadows on secondary boxes such as the menu or pop-up boxes in gtk.

If I am wrong about shadows being in compositor then my next guess is it would be in metacity since borders are in there. Those borders may be a workaround to get the glow in a different way (though maybe not as nice which is why I don't do it). If you are using the Mint-X theme it is the metacity-theme-3.xml . You can just change the constant value of "C_border_focused" and the unfocused variant below it to get the color. You can also change the width of the borders by looking where the constant value is used later in the theme (that's a bit more complex so I won't give step by step).

It has been a while since I tried to figure out how to do both the things you want to do, so maybe something has changed.
Thanks for the reply. All I know is what Ive been told by a very helpful member is that we will have to wait untill Mint 18 which will have plasma 5. Then we will be able to have alot better themes. I enjoy cinnamon and wish we had all the cool looking stuff the other desktop environments have.

elbullazul
Level 2
Level 2
Posts: 50
Joined: Wed Aug 12, 2015 1:41 pm

Re: Text color

Post by elbullazul » Tue Apr 12, 2016 8:17 pm

trippin wrote:
Penn wrote:
trippin wrote: now all im trying to do is add a glow to my window boarders like in this video https://www.youtube.com/watch?v=XKFR6fnxlKg id also like to learn how to make windows transparent if you know. thanks again :D id been looking forever :D :D
That theme is designed for KDE which can do things gtk can't.

To my understanding neither can be done unless the developers decide to make it possible (I've heard it is the compositor that needs changing so maybe you can find a workaround changing that directly).

In the case of that glow it seems to me it's actually the window shadow. If you find out how to change the shadow of basic windows tell us in this thread since I'm sure others would like to do this, myself included. I could be wrong with shadow because I know it is possible to change the shadows on secondary boxes such as the menu or pop-up boxes in gtk.

If I am wrong about shadows being in compositor then my next guess is it would be in metacity since borders are in there. Those borders may be a workaround to get the glow in a different way (though maybe not as nice which is why I don't do it). If you are using the Mint-X theme it is the metacity-theme-3.xml . You can just change the constant value of "C_border_focused" and the unfocused variant below it to get the color. You can also change the width of the borders by looking where the constant value is used later in the theme (that's a bit more complex so I won't give step by step).

It has been a while since I tried to figure out how to do both the things you want to do, so maybe something has changed.
Thanks for the reply. All I know is what Ive been told by a very helpful member is that we will have to wait untill Mint 18 which will have plasma 5. Then we will be able to have alot better themes. I enjoy cinnamon and wish we had all the cool looking stuff the other desktop environments have.
you could try out other decorations such as emerald or compiz, but those are for ubuntu and I have no clue if they even work with cinnamon

Penn
Level 5
Level 5
Posts: 753
Joined: Tue Jun 10, 2014 1:12 pm

Re: Text color

Post by Penn » Wed Apr 13, 2016 5:22 pm

My understanding is Emerald is part of Compiz. I know Compiz can do both the things trippin wants to do but I hear it can be buggy on Mint. I know it was when I tried it on 17.1 on one machine.

In the monthly blog post Clem was asked about transparent windows (post 86 http://blog.linuxmint.com/?p=3017) but I have't seen an answer yet.

If these features aren't included in the Mint base they may not even work in KDE5 when 18 comes out. I know the Tron theme trippin is pointing to is from some time ago, which would be before KDE5 existed. In KDE4 on the 17.x releases don't have translucent themes.

My guess would be sooner or later transparency would be possible for Mint since it can already be used in the form of RGBA in the panel and is used in the terminal (terminal is how I know I personally don't like it for the active window but it would be nice for inactive windows).

As far as changing the shadow goes, this topic is the first time I know of it being discussed, which may not even be relevant to what trippin wants (I just brought it up because it looks like the shadow is where the border glow comes from but it might just be the Metacity borders. It is possible to get that glow by using multiple borders fading from the inner most being solid the the outermost being an alpha value of 0 but this will still leave a shadow outside of that which would be obvious if the edge was on a light colored window or background).

elbullazul
Level 2
Level 2
Posts: 50
Joined: Wed Aug 12, 2015 1:41 pm

Re: Text color

Post by elbullazul » Thu Apr 14, 2016 9:10 am

Penn wrote:My understanding is Emerald is part of Compiz. I know Compiz can do both the things trippin wants to do but I hear it can be buggy on Mint. I know it was when I tried it on 17.1 on one machine.

In the monthly blog post Clem was asked about transparent windows (post 86 http://blog.linuxmint.com/?p=3017) but I have't seen an answer yet.

If these features aren't included in the Mint base they may not even work in KDE5 when 18 comes out. I know the Tron theme trippin is pointing to is from some time ago, which would be before KDE5 existed. In KDE4 on the 17.x releases don't have translucent themes.

My guess would be sooner or later transparency would be possible for Mint since it can already be used in the form of RGBA in the panel and is used in the terminal (terminal is how I know I personally don't like it for the active window but it would be nice for inactive windows).

As far as changing the shadow goes, this topic is the first time I know of it being discussed, which may not even be relevant to what trippin wants (I just brought it up because it looks like the shadow is where the border glow comes from but it might just be the Metacity borders. It is possible to get that glow by using multiple borders fading from the inner most being solid the the outermost being an alpha value of 0 but this will still leave a shadow outside of that which would be obvious if the edge was on a light colored window or background).
Metacity doesn't handle transparency, if a border is semi-transparent you'll get the theme's BG color and all transparency effect would look very weird

Post Reply

Return to “Themes, Icons, & Wallpaper”