Xfce Forum

Sub domains
 

You are not logged in.

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

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

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-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

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.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

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

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-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#4 2021-12-22 13:01:57

robz
Member
Registered: 2021-12-22
Posts: 2

Re: change color of clock?

I use the digital clock dropdown, so after verifying

class "XfceXfceClockAnalog"  style "myclock"  worked for analog,

I tried:

style "myclock" {
    fg[NORMAL] = "#ffff00"
}
class "XfceXfceClockDigital"  style "myclock"

and got a wonderful yellow digital clock on my already black Xfce panel.

Thanks!

Last edited by robz (2021-12-22 13:02:39)

Offline

#5 2021-12-22 13:33:50

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

Re: change color of clock?

A potentially useful necropost--are you on Xfce 4.16?


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#6 2021-12-22 23:35:56

robz
Member
Registered: 2021-12-22
Posts: 2

Re: change color of clock?

I'm on Xfce 4.10 (Ubuntu 14.04 LTS), getting the last bit of life out of it.

Last edited by robz (2021-12-22 23:50:46)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 534.5 KiB (Peak: 535.34 KiB) ]