LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-03-2006, 01:34 PM   #1
bgryderclock
Member
 
Registered: Mar 2005
Location: charlotte nc
Distribution: fedora -> debian / (x)ubuntu -> Slackware
Posts: 44
Blog Entries: 1

Rep: Reputation: 15
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.
 
Old 08-07-2006, 12:14 PM   #2
bgryderclock
Member
 
Registered: Mar 2005
Location: charlotte nc
Distribution: fedora -> debian / (x)ubuntu -> Slackware
Posts: 44

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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 07-30-2007, 04:07 AM   #3
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
Nice job, this worked for me too, thank you for following up and posting how you did this.
 
Old 08-04-2007, 01:28 AM   #4
XxEntropyxX
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
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"
 
Old 08-04-2007, 01:29 AM   #5
XxEntropyxX
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
http://jozmak.blogspot.com/2007/04/o...interface.html
 
Old 08-17-2007, 02:29 AM   #6
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
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

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"
 
Old 09-19-2014, 02:49 AM   #7
tcuc
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
Question 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.
 
  


Reply

Tags
colors, icon, xfce


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you change KDE's icon text textfield size? registering Linux - Software 4 07-17-2008 11:57 PM
boot colors in kernel ( text font and background) drkstr Linux - Kernel 7 07-27-2006 04:59 PM
Aterm(howto change colors of the text..?) k0ljat Linux - Software 5 04-11-2004 12:15 PM
how change text (and background) color within the bash shell? Xavius Linux - Newbie 4 03-29-2004 02:21 PM
how do i change text colors rcjoyner Linux - Newbie 3 10-16-2003 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration