Change colors - XFCE icon text and text background
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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"
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"
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
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"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.