Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 8e7fd54

Browse files
[[New Widget]] pressed state for ios button when transparent
1 parent 0df9980 commit 8e7fd54

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

extensions/widgets/pushbutton/pushbutton.lcb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,12 @@ private handler fetchPaint(in pObject as String) returns Paint
476476

477477
else if pObject is "label" then
478478
if mWidgetTheme is kWidgetThemeIos then
479-
return solid paint with mLabelColor
479+
if mIsPressed then
480+
return solid paint with color [the red of mLabelColor, the green of mLabelColor, the blue of mLabelColor, 0.5]
481+
else
482+
return solid paint with mLabelColor
483+
end if
484+
480485
else if mWidgetTheme contains "Android" then
481486
return solid paint with mAndroidLabelColor
482487
end if

0 commit comments

Comments
 (0)