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

Commit b6a9bf4

Browse files
[[New Widget]] made sure border was showing correctly for android
1 parent 1512810 commit b6a9bf4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

extensions/widgets/pushbutton/pushbutton.lcb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,7 @@ private handler updateAndroidColors() returns nothing
618618
if my enabled then
619619
put stringToColor(mAndroidColors[mColorScheme]) into mAndroidLabelColor
620620
if mIsPressed then
621-
if mWidgetTheme is kWidgetThemeAndroidFlat then
622-
put color [153/255, 153/255, 153/255, 0.4] into mAndroidBackgroundColor
623-
-- TO-DO raised light background color ??
624-
end if
621+
put color [153/255, 153/255, 153/255, 0.4] into mAndroidBackgroundColor
625622
else
626623
put color [1,1,1] into mAndroidBackgroundColor
627624
end if
@@ -692,6 +689,11 @@ private handler setWidgetTheme(in pWidgetTheme as String)
692689
else if mWidgetTheme is kWidgetThemeAndroidRaised then
693690
put kOpaqueBackground into mBackgroundOpacity
694691
put kLabelStyleText into mLabelStyle
692+
if mColorTheme is "Light" then
693+
put true into mShowBorder
694+
else if mColorTheme is "Dark" then
695+
put false into mShowBorder
696+
end if
695697

696698
else if mWidgetTheme is kWidgetThemeAndroidFlat then
697699
put kTransparentBackground into mBackgroundOpacity

0 commit comments

Comments
 (0)