View Single Post
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#217
Originally Posted by porselinaheart View Post
can anybody be so kind as to point me to where i should be looking to change the alarm 'on' icon for the decimal clock?? is it an actual png?, or is it in the code ( enlarged fullstop character ) if its the latter, can i have some help locating where in the code i need to edit to change its color?
I have 0.11.1-1 but not the latest 0.12
best you take a look in that latest code,
but to get you started -

I see the alarm is only implemented in some of the clocks,
adding the alarm is a bit more work depending on the clock type.

Anyways
Looks like it is here (in version 0.11.1-1)
in the master file - clock.py:

Code:
    def draw_alarm_indicator(self):
        self.context.set_source_rgb(1.0, 0.0, 0.0)
        self.context.arc(self.drawing_area.get_size_request()[0] - 8, 8, 7, 0, 2 * math.pi)
        self.context.fill()
adjust
self.context.set_source_rgb(1.0, 0.0, 0.0)

for your favorite color, maybe?
looks like red=1, green=0, blue=0 gives you a red dot I guess.

but to be sure, you should best download the latest
as it has possibly/probably changed by now

cheers
__________________
Three n900s: One for stable working platform,
One for development testing Chopping Onions
One for saltwater immersion power testing resurrected ! parts scavenging

My Mods for Wonko's Advanced Clock Plugin:
ISO8601 clock mod and Momental_IST clock mod

Printing your Email with the N900
 

The Following 2 Users Say Thank You to theonelaw For This Useful Post: