Skip to content

Commit 75529a9

Browse files
Merge pull request livecode#2130 from montegoulding/bugfix-22605b
[[ Bug 22605 ]] Add dark mode options for iOS launch screen
2 parents 39d09a3 + 74ff777 commit 75529a9

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

Documentation/guides/Deploying Your Application.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,15 @@ Figure 10 – Standalone Settings – iOS Icons
338338
Figure 11 – Standalone Settings – iOS Splash
339339

340340
|  |  |
341-
|---------------------------------|-------------------------------------------------------------------------------------------------------------|
342-
| **Launch Image** | Choose a png image. This will be centered on screen. A 2732x2732 image will cover all current devices. |
343-
| **2x Launch Image** | Choose a png image. This will be centered on screen. A 5464x5464 image will cover all current devices. |
344-
| **3x Launch Image** | Choose a png image. This will be centered on screen. A 8196x8196 image will cover all current devices. |
345-
| **Background Color** | Choose a background color for transparent areas and/or areas of the screen the launch image does not cover. |
341+
|-------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
342+
| **Launch Image** | Choose a png image. This will be centered on screen. |
343+
| **2x Launch Image** | Choose a png image. This will be centered on screen. |
344+
| **3x Launch Image** | Choose a png image. This will be centered on screen. |
345+
| **Dark Mode Launch Image** | Choose a png image for use in dark mode. This will be centered on screen. |
346+
| **Dark Mode 2x Launch Image** | Choose a png image for use in dark mode. This will be centered on screen. |
347+
| **Dark Mode 3x Launch Image** | Choose a png image for use in dark mode. This will be centered on screen. |
348+
| **Background Color** | Choose a background color for transparent areas and/or areas of the screen the launch image does not cover. |
349+
| **Use system background color** | Use the system background color instead of a chosen color. This will use a dark color in dark mode and light color in light mode. |
346350

347351
Related lessons:
348352

13.9 KB
Loading
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)