Skip to content

Commit a41eb96

Browse files
[[Bugfix 19619]] Allow for alpha colors in the property inspector
Updated the property metadata definitions for the various color properties so that they are rendered with a slider for alpha value in the properties inspector.
1 parent 5f4f7d7 commit a41eb96

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

extensions/widgets/clock/clock.lcb

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ displaying its daytime or night-time colors use the read-only property
9494
<isDay>.
9595
*/
9696
property dayNumberColor get getDayNumberColor set setDayNumberColor
97-
metadata dayNumberColor.editor is "com.livecode.pi.color"
98-
metadata dayNumberColor.default is "0,0,0"
97+
metadata dayNumberColor.editor is "com.livecode.pi.colorwithalpha"
98+
metadata dayNumberColor.default is "0,0,0,255"
9999
metadata dayNumberColor.section is "Colors"
100100
metadata dayNumberColor.label is "Number color (day)"
101101

@@ -112,8 +112,8 @@ displaying its daytime or night-time colors use the read-only property
112112
<isDay>.
113113
*/
114114
property nightNumberColor get getNightNumberColor set setNightNumberColor
115-
metadata nightNumberColor.editor is "com.livecode.pi.color"
116-
metadata nightNumberColor.default is "255,255,255"
115+
metadata nightNumberColor.editor is "com.livecode.pi.colorwithalpha"
116+
metadata nightNumberColor.default is "255,255,255,255"
117117
metadata nightNumberColor.section is "Colors"
118118
metadata nightNumberColor.label is "Number color (night)"
119119

@@ -130,8 +130,8 @@ displaying its daytime or night-time colors, use the read-only property
130130
<isDay>.
131131
*/
132132
property dayHourHandColor get getDayHourHandColor set setDayHourHandColor
133-
metadata dayHourHandColor.editor is "com.livecode.pi.color"
134-
metadata dayHourHandColor.default is "0,0,0"
133+
metadata dayHourHandColor.editor is "com.livecode.pi.colorwithalpha"
134+
metadata dayHourHandColor.default is "0,0,0,255"
135135
metadata dayHourHandColor.section is "Colors"
136136
metadata dayHourHandColor.label is "Hour hand color (day)"
137137

@@ -148,8 +148,8 @@ displaying its daytime or night-time colors, use the read-only property
148148
<isDay>.
149149
*/
150150
property nightHourHandColor get getNightHourHandColor set setNightHourHandColor
151-
metadata nightHourHandColor.editor is "com.livecode.pi.color"
152-
metadata nightHourHandColor.default is "255,255,255"
151+
metadata nightHourHandColor.editor is "com.livecode.pi.colorwithalpha"
152+
metadata nightHourHandColor.default is "255,255,255,255"
153153
metadata nightHourHandColor.section is "Colors"
154154
metadata nightHourHandColor.label is "Hour hand color (night)"
155155

@@ -166,8 +166,8 @@ displaying its daytime or night-time colors, use the read-only property
166166
<isDay>.
167167
*/
168168
property dayMinuteHandColor get getDayMinuteHandColor set setDayMinuteHandColor
169-
metadata dayMinuteHandColor.editor is "com.livecode.pi.color"
170-
metadata dayMinuteHandColor.default is "0,0,0"
169+
metadata dayMinuteHandColor.editor is "com.livecode.pi.colorwithalpha"
170+
metadata dayMinuteHandColor.default is "0,0,0,255"
171171
metadata dayMinuteHandColor.section is "Colors"
172172
metadata dayMinuteHandColor.label is "Minute hand color (day)"
173173

@@ -184,8 +184,8 @@ displaying its daytime or night-time colors, use the read-only property
184184
<isDay>.
185185
*/
186186
property nightMinuteHandColor get getNightMinuteHandColor set setNightMinuteHandColor
187-
metadata nightMinuteHandColor.editor is "com.livecode.pi.color"
188-
metadata nightMinuteHandColor.default is "255,255,255"
187+
metadata nightMinuteHandColor.editor is "com.livecode.pi.colorwithalpha"
188+
metadata nightMinuteHandColor.default is "255,255,255,255"
189189
metadata nightMinuteHandColor.section is "Colors"
190190
metadata nightMinuteHandColor.label is "Minute hand color (night)"
191191

@@ -202,8 +202,8 @@ displaying its daytime or night-time colors, use the read-only property
202202
<isDay>.
203203
*/
204204
property daySecondHandColor get getDaySecondHandColor set setDaySecondHandColor
205-
metadata daySecondHandColor.editor is "com.livecode.pi.color"
206-
metadata daySecondHandColor.default is "255,0,0"
205+
metadata daySecondHandColor.editor is "com.livecode.pi.colorwithalpha"
206+
metadata daySecondHandColor.default is "255,0,0,255"
207207
metadata daySecondHandColor.section is "Colors"
208208
metadata daySecondHandColor.label is "Second hand color (day)"
209209

@@ -220,8 +220,8 @@ displaying its daytime or night-time colors, use the read-only property
220220
<isDay>.
221221
*/
222222
property nightSecondHandColor get getNightSecondHandColor set setNightSecondHandColor
223-
metadata nightSecondHandColor.editor is "com.livecode.pi.color"
224-
metadata nightSecondHandColor.default is "255,0,0"
223+
metadata nightSecondHandColor.editor is "com.livecode.pi.colorwithalpha"
224+
metadata nightSecondHandColor.default is "255,0,0,255"
225225
metadata nightSecondHandColor.section is "Colors"
226226
metadata nightSecondHandColor.label is "Second hand color (night)"
227227

@@ -238,7 +238,7 @@ displaying its daytime or night-time colors, use the read-only property
238238
<isDay>.
239239
*/
240240
property dayFaceColor get getDayFaceColor set setDayFaceColor
241-
metadata dayFaceColor.editor is "com.livecode.pi.color"
241+
metadata dayFaceColor.editor is "com.livecode.pi.colorwithalpha"
242242
metadata dayFaceColor.default is "224,224,224,64"
243243
metadata dayFaceColor.section is "Colors"
244244
metadata dayFaceColor.label is "Face color (day)"
@@ -256,8 +256,8 @@ displaying its daytime or night-time colors, use the read-only property
256256
<isDay>.
257257
*/
258258
property nightFaceColor get getNightFaceColor set setNightFaceColor
259-
metadata nightFaceColor.editor is "com.livecode.pi.color"
260-
metadata nightFaceColor.default is "0,0,0"
259+
metadata nightFaceColor.editor is "com.livecode.pi.colorwithalpha"
260+
metadata nightFaceColor.default is "0,0,0,255"
261261
metadata nightFaceColor.section is "Colors"
262262
metadata nightFaceColor.label is "Face color (night)"
263263

0 commit comments

Comments
 (0)