Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-01-12 17:42:48

Jerry3904
Member
Registered: 2013-11-09
Posts: 402

change color of clock?

My graphic person would like to change the color of the (analog) clock to white, and I agree that it would look better. 

There is nothing in the Properties box to do that, so I opened the xfce4-panel.xml and, after duckduckgoing for "xml font color", tried to insert this into the clock entry:

<property name="font-color" type="string" value="#ffffff"/>

That didn't work (and why should it after all?), so I pose the question here: is there a property name entry that will allow me to change the clock color?

TIA


MX-15 (based on Debian Stable) with Xfce 4.12 on Acer Aspire One 722

Offline

#2 2014-01-12 19:21:39

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 2,697

Re: change color of clock?

Try adding the following code to ~/.gtkrc-2.0 (for individual user use) or /etc/gtk-2.0/gtkrc (for system-wide use):

style "myclock" {
    fg[NORMAL] = "#ffffff"
 }
class "XfceXfceClockAnalog"  style "myclock"

You'll need to either log out and back in again or change the GTK theme away and back again for it to take effect.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2014-01-12 20:28:53

Jerry3904
Member
Registered: 2013-11-09
Posts: 402

Re: change color of clock?

[Impressive--thought I would at least slow you down with that one...]

Thanks--will pass it on.  It actually makes quite a visual difference given the way we are configuring the Panel.


MX-15 (based on Debian Stable) with Xfce 4.12 on Acer Aspire One 722

Offline

Board footer

Powered by FluxBB