how to change colour of Desktop icon label text in xfce

Forums for the Xfce Edition
Forum rules
Before you post please read this

how to change colour of Desktop icon label text in xfce

Postby kingsthane on Wed Jan 18, 2012 5:20 pm

Just switched today to Mint lmde-xfce 64bit after a number of years using ubuntu. Generally happy so far. However I've one problem, that is inescapable so far. I've installed my favourite Desktop background, which is mostly quite dark and now I cannot read the black text labels for the Desktop icons. How can I change the black text to another lighter colour of my choice? Many thanks.
kingsthane
Level 1
Level 1
 
Posts: 16
Joined: Wed Jan 18, 2012 1:38 pm

Linux Mint is funded by ads and donations.
 

Re: how to change colour of Desktop icon label text in xfce

Postby xenopeek on Wed Jan 18, 2012 5:25 pm

Moved here by moderator
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10542
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: how to change colour of Desktop icon label text in xfce

Postby rhodry on Wed Jan 18, 2012 9:45 pm

You need these two files in your /home/<user> folder:

.gtkrc-2.0 & .gtkrc.mine # note they are both "dot" files ie hidden. Create them if necessary.

Don't worry too much about anything else that may or may not be in the .gtkrc-2.0 file other than you need to add the highlighted line in the example below if it is not there:

# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/Adwaita/gtk-2.0/gtkrc"

style "user-font" {
font_name = "Envy Code R 12"
}

widget_class "*" style "user-font"

gtk-font-name="Envy Code R 12"

include "/home/<yourusername>/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT


This imports your personal additions to a system generated file.

The important file is the 2nd one, which is where you make all your personal preference changes that will not get overridden by system defaults:

example:
# user added stuff

style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 0

base[NORMAL] = "#ffffff"
base[SELECTED] = "#5050ff"
base[ACTIVE] = "#0000ff"

fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#ffffff"
fg[ACTIVE] = "#ffffff"
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

style "panel"
{
bg[NORMAL] = "#3685d5"
fg[NORMAL] = "#ffffff"
}

widget_class "*Panel*" style "panel"
widget "*Panel*" style "panel"
class "*Panel*" style "panel"


The red line sets the Desktop icon surrounds to transparent (rather than a highlight colour) and the rest of it changes colours for the text foreground/background/highlight and the panel colours.

You can use any colour combinations you like to match your themes - the colours must be expressed in hexadecimal form, like #3685d5. To find the hexadecimal number for any particular colour, install a little program from the repos called 'gcolor2".

Log out and log back in when you are done.

cheers,
rhodry.
Life isn't about waiting for the storm to pass...
it's about learning to dance in the rain.
rhodry
Level 4
Level 4
 
Posts: 347
Joined: Mon Jun 04, 2007 7:32 am

Re: how to change colour of Desktop icon label text in xfce

Postby kingsthane on Thu Jan 19, 2012 12:09 am

Thanks Rhodry. I'll try this out tomorrow and hopefully get back with the results. Cheers
kingsthane
Level 1
Level 1
 
Posts: 16
Joined: Wed Jan 18, 2012 1:38 pm

Worked like a charm!

Postby kingsthane on Fri Jan 20, 2012 9:56 am

Rhodry;
Many thanks! Your howto worked great. I may play around with the settings in a few days. But just pasting your data into my new .gtkrc.mine file did the trick perfectly for now. I'll mark this thread as solved. Cheers
kingsthane
Level 1
Level 1
 
Posts: 16
Joined: Wed Jan 18, 2012 1:38 pm

Re: how to change colour of Desktop icon label text in xfce

Postby rhodry on Fri Jan 20, 2012 7:58 pm

Many thanks! Your howto worked great.


Glad it helped.

Just a point I forgot. I have been using this for a LONG time :) so I forgot to mention that you do not need the part from "style panel" if you are using Xfce v4.8. Panel colours can now be set from the gui Settings Manger.

You can experiment all you like with colour combinations - it depends very much on what gtk theme & desktop background you are running to get the "nicest" mix.

Welcome to the power of "inside Linux". Have fun :)

rhodry.
Life isn't about waiting for the storm to pass...
it's about learning to dance in the rain.
rhodry
Level 4
Level 4
 
Posts: 347
Joined: Mon Jun 04, 2007 7:32 am


Return to Xfce

Who is online

Users browsing this forum: fichte and 2 guests