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

Commit 9690534

Browse files
committed
[[ Bug 22605 ]] Standalone settings changes for dark mode launch screens
This patch adds support for dark mode to the storyboard based launch screens for iOS. Users can now choose dark mode images and to use the system background color.
1 parent 39d09a3 commit 9690534

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed
3.99 KB
Binary file not shown.

Toolset/palettes/standalone settings/revstandalonesettingsiosbehavior.livecodescript

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,16 @@ on updateSettings
150150
put computeDefault(tSettings["ios,iPad Pro 12.9 icon"], empty) into field "iPad Pro 12.9 Icon"
151151
put computeDefault(tSettings["ios,iPad Pro 11 icon"], empty) into field "iPad Pro 11 Icon"
152152

153-
put computeDefault(tSettings["ios,launch-image-1x"], empty) into field "launch-image-1x"
154-
put computeDefault(tSettings["ios,launch-image-2x"], empty) into field "launch-image-2x"
155-
put computeDefault(tSettings["ios,launch-image-3x"], empty) into field "launch-image-3x"
156-
set the backColor of graphic "launch-backcolor" to computeDefault(tSettings["ios,launch-backcolor"], "0,0,0")
153+
put computeDefault(tSettings["ios,launch-image-light-1x"], empty) into field "launch-image-light-1x"
154+
put computeDefault(tSettings["ios,launch-image-light-2x"], empty) into field "launch-image-light-2x"
155+
put computeDefault(tSettings["ios,launch-image-light-3x"], empty) into field "launch-image-light-3x"
156+
put computeDefault(tSettings["ios,launch-image-dark-1x"], empty) into field "launch-image-dark-1x"
157+
put computeDefault(tSettings["ios,launch-image-dark-2x"], empty) into field "launch-image-dark-2x"
158+
put computeDefault(tSettings["ios,launch-image-dark-3x"], empty) into field "launch-image-dark-3x"
159+
160+
set the opaque of graphic "launch-backcolor" to tSettings["ios,launch-backcolor"] is not empty
161+
set the hilite of button "Use system background color" to tSettings["ios,launch-backcolor"] is empty
162+
set the backColor of graphic "launch-backcolor" to tSettings["ios,launch-backcolor"]
157163

158164
local tProfiles, tProfileIndex
159165
put empty into tProfileIndex

0 commit comments

Comments
 (0)