Skip to content

Commit 3caecbd

Browse files
[[Bug 19619]] Fix minor typos
Fixed two typographical errors: 1.) The documentation for the <nightHourHandColor> referred to the previous <nightNumberColor> property 2.) The default <nightNumberColor> property for older widgets that did not have the property is set to black (the day color) rather than white (the default night color)
1 parent de4d7c4 commit 3caecbd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

extensions/widgets/clock/clock.lcb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ metadata dayHourHandColor.label is "Hour hand color (day)"
136136
Syntax: set the nightHourHandColor of <widget> to <color>
137137
Syntax: get the nightHourHandColor of <widget>
138138

139-
Summary: Determines the color of the numbers on the clock during the night
139+
Summary: Determines the color of the hour hand on the clock during the night
140140

141141
Description:
142-
Use the <nightHourHandColor> property to get or set the text color of the numbers
143-
on the face of the clock during the night. To determine if the clock is
142+
Use the <nightHourHandColor> property to get or set the color of the hour
143+
hand of the clock during the night. To determine if the clock is
144144
displaying its daytime or night-time colors, use the read-only property
145145
<isDay>.
146146
*/
@@ -194,7 +194,7 @@ public handler OnLoad(in pProperties as Array)
194194
if "nightNumberColor" is among the keys of pProperties then
195195
put stringToColor(pProperties["nightNumberColor"]) into mNightNumberColor
196196
else
197-
put color kBlack into mNightNumberColor
197+
put color kWhite into mNightNumberColor
198198
end if
199199
if "dayHourHandColor" is among the keys of pProperties then
200200
put stringToColor(pProperties["dayHourHandColor"]) into mDayHourHandColor

0 commit comments

Comments
 (0)