Skip to main content

13 docs tagged with "clock widget"

View all tags
Docs

Clock

This widget consists of an analogue clock. The clock has day and night style displays which are used depending on the time. The period interpreted as day by the clock is controlled by a pair of constants kStartDay and kEndDay, currently set at 6 and 20 respectively. Thus the clock will display in night style between the hours of 8pm and 6am. The style of the clock, can be controlled by setting the appropriate colors of the different components. For daytime this is through the dayNumberColor, dayHourHandColor, dayMinuteHandColor, daySecondHandColor and dayFaceColor properties. There are equivalent properties for the night style. The time displayed by the clock can differ from the current system local time by setting the timeZone property, an integer which adjusts the time displayed relative to universal time (UTC).

dayFaceColor

Determines the color of the face of the clock during the day

dayHourHandColor

Determines the color of the hour hand on the clock during the day

dayNumberColor

Determines the color of the numbers on the clock during the day

isDay

Whether the clock's current display is in "day" mode.

nightFaceColor

Determines the color of the face of the clock during the night

nightNumberColor

Determines the color of the numbers on the clock during the night

timeZone

The time zone offset from UTC, in seconds, or the empty string