LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Change colors - XFCE icon text and text background (http://www.linuxquestions.org/questions/linux-software-2/change-colors-xfce-icon-text-and-text-background-470494/)

bgryderclock 08-03-2006 01:34 PM

Change colors - XFCE icon text and text background
 
I am trying out the XFCE desktop on Ubuntu (xubuntu).
I am very impressed with its speed! \m/

How do you change the color of the text and text background for the desktop icons?

Right now I have black icon text, on a gray patch, on a black desktop.

It looks quite ghetto.

bgryderclock 08-07-2006 12:14 PM

Quote:

...silence...
i did it! \m/ :) \m/

Answer:

i edited the .gtkrc-2.0 file in my /home/user_name folder and added the bolded part at the end:


Code:

# This file was written by KDE
# You can edit it in the KDE control center, under "GTK Styles and Fonts"

include "/usr/share/themes/Clearlooks/gtk-2.0/gtkrc"

style "user-font"
{
        font_name="DejaVu Sans 9"
}
widget_class "*" style "user-font"

gtk-theme-name="Clearlooks"
gtk-font-name="DejaVu Sans 9"

# this is the new part added by bgryderclock

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

    base[NORMAL] = "#000000"
    base[SELECTED] = "#000000"
    base[ACTIVE] = "#000000"

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


Old_Fogie 07-30-2007 04:07 AM

Nice job, this worked for me too, thank you for following up and posting how you did this.

XxEntropyxX 08-04-2007 01:28 AM

Ultimate Transparency for XCF4
 
Building on the above answer I found the following builds truly transparent backgrounds with highlighted text for active and clicked.

I tested this on a Compiz-Fusion fade I am working on and it works perfectly.

I found the code on this guy's page which has a couple other neat updates that I am using. I will respond with a link since this is my first post.


Code:

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

#Text colors you can delete these if you want you use gtk theme colors
fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#00ff00"
fg[ACTIVE] = "#0000ff"

}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"


XxEntropyxX 08-04-2007 01:29 AM

http://jozmak.blogspot.com/2007/04/o...interface.html

Old_Fogie 08-17-2007 02:29 AM

Truly one of my favorite threads
 
Great link ty very much.

This got me thinking what else could be done with the ~/.gtkrc-2.0 file

It turns out alot!

See below for my current tweaks, which is nice as I can change some stuff on the fly without having to su and change the /usr/share/theme files.

Mind you, my "QA" for this is "it works for me" so keep that in mind :D

Code:

# this file should be placed in your home folder
# and name ".gtkrc-2.0"

#---------------------------------------------------------------
# Section "icon background colors"
#---------------------------------------------------------------
# The following two lines *should* be left uncommented
# if we want the XFCE desktop icon backgrounds to use
# alpha blending (e.g. invisible or some % thereof)

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



#---------------------------------------------------------------
# Section "icon font colors"
#---------------------------------------------------------------

# The next three lines deal with the color of the desktop icon's
# text. You can comment them out if you want you use gtk theme
# colors. Below yields white un-selected normal, green selected,
# and blue when going to another window
#
# I chose three different colors so that you can see the level
# of customization we can do.

fg[NORMAL] = "#ffffff"        #this is white
fg[SELECTED] = "#00ff00"      # this is green
fg[ACTIVE] = "#0000ff"        # this is blue

## my blue fonts to use with nuvola theme & royal blue WM
# environment. a soft shark underbelly blue color if you will.
#fg[NORMAL] = "#528AC6"
#fg[SELECTED] = "#528AC6"
#fg[ACTIVE] = "#528AC6"

}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"



#---------------------------------------------------------------
# Section "xfce panel colors"
#---------------------------------------------------------------

# Use these to change the panel color.  Note this should
# be commented out entirely if you decide to use
# Section "xfce panel background" below.

#style "panel"
#{
#this one here is grey
#bg[NORMAL] = "#909599"
# use this with nuvola theme
#bg[NORMAL] = "#64AEE0"
#xthickness = 0
#ythickness = 0
#}
#
#widget_class "*Panel*" style "panel"
#widget "*Panel*" style "panel"
#class "*Panel*" style "panel"



#---------------------------------------------------------------
# Section "xfce panel background"
#---------------------------------------------------------------

style "panel"
{
bg_pixmap[NORMAL] = "Panel/panel-bg.png"
}

# note I simply have a folder in my home called "Panel"
# with the file "panel-bg.png" in it. not sure if you
# can hard code that to somewhere else.

widget_class "*Panel*" style "panel"
widget "*Panel*" style "panel"
class "*Panel*" style "panel"
widget_class "*List*"              style "colored"
class "*List*"                    style "colored"
widget_class "*Text*"              style "colored"
class "*Text*"                    style "colored"
widget_class "*Entry*"            style "colored"
class "*Entry*"                    style "colored"



#---------------------------------------------------------------
# Section "xfce icon fallback theme"
#---------------------------------------------------------------
#
# this is our fallback icon theme in case we launch
# thunar in KDE or XFCE can't find an icon for your theme
# for some icon for some reason.
# a safe default is "Rodent" as it comes with Slackware 12's XFCE

gtk-icon-theme-name = "Etiquette Xfce"


tcuc 09-19-2014 02:49 AM

xfce panel font color
 
can i change the font color on the xfce panel?
i have a black panel and dark gray text so i can barely read anything on my panel.


All times are GMT -5. The time now is 01:59 PM.