Trick-customize Clock's font colour on Gnome

Target: Change Clock fonts' colour to be red:~

clock1

Step1,press Alt+F2, run gconf-editor,and then go to /apps/panel/applets to find your clock applet.For  Ubuntu 8.04 ,it should be /apps/panel/applets/clock_screen0->prefs.

Step2,change the  option Customer Format 's value with  CSS command,if you don't know any CSS knowledge, you can use below commands:

<span color="#FD4747>%H%:%M</span>

//display hour/minute

or

<span color=”#FF0000″>%Y %B %d %A</span><b>%H: %M</b>

//display year/month/day/weekday and font is bolder

note:replace the colour value(like #FD4747) to what you want...

clock

Step3,change the option Format 's key value to custom.

Once you have done Step3,you may see the fonts' colour has been changed...

If you know more about CSS+Strftime format ,you can variously customize the Clock's display .

Learn more about CSS:http://www.w3.org/Style/CSS/learning

Strftime format reference:~

%a: Weekday name, abbreviated

%A: Weekday name

%b: Month name, abbreviated

%B: Month name

%c: Preferred date-and-time representation for the current locale

%C: Century number, expressed as a two-digit integer in the range 00-99

%d: Day of the month, expressed as a two-digit integer in the range 01-31

%D: Same as %m/%d/%y

%e: Day of the month, expressed as an unpadded one-digit or two-digit integer in the range1-31

%h: Same as %b

%H: Hour, expressed as a two-digit integer in 24-hour clock format in the range00-24

%I: Hour, expressed as a two-digit integer in 12-hour clock format in the range00-12

%j: Day of the year, expressed as a three-digit integer in the range 001-366

%m: Month, expressed as an integer in the range01-12

%M: Minute, expressed as an integer in the range00-59

%n: Newline character (ASCII0x10)

%p: The string'AM'or'PM' as appropriate for the given time (may be translated for the current locale)

%r: Time in 12-hour clock format with seconds; same as %I:%M:%S %p

%R: Time in 24-hour clock format without seconds; same as %H:%M

%S: Seconds, expressed as a two-digit decimal number in the range 00-59

%t: Tab character (ASCII0x9)

%T: Time in 24-hour clock format with seconds; same as %H:%M:S

%u: Weekday expressed as a single-digit integer in the range 1-7, where Monday is day1

%U: Week number, expressed as an integer in the range 00-53, where the first Sunday is the first day of the first week

%V: Week number, expressed as an integer in the range 00-53, where week01 is the first week with four or more of its days within the year, and Monday as the first day of the week (ISO 8601:1998 format)

%W: Week number, expressed as an integer in the range 00-53, where the first Monday is the first day of the first week

%x: Date expressed in the preferred representation for the current locale, not including the time

%X: Time expressed in the preferred representation for the current locale, not including the date

%y: Year, expressed as a two-digit integer in the range 00-99

%Y: Year, expressed as a two-digit integer in the range 1970-2037

%Z: Current time zone or its name or abbreviation

%%: Literal percent sign

Creative Commons License
linuxine.com's blog posts is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License