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

Commit 2f615eb

Browse files
Merge pull request #1849 from livecode/bugfix-20641
[Bug 20641] Added support for iPhone X splash screens and icon
2 parents 4c09492 + 4326d3e commit 2f615eb

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

4.17 KB
Binary file not shown.

Toolset/palettes/standalone settings/revstandalonesettingsiosbehavior.livecodescript

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ on updateSettings
144144
put computeDefault(tSettings["ios,retina icon"], empty) into field "Retina Icon"
145145
put computeDefault(tSettings["ios,iOS 7 retina icon"], empty) into field "iOS 7 Retina Icon"
146146
put computeDefault(tSettings["ios,iPhone 6 Plus icon"], empty) into field "iPhone 6 Plus Icon"
147+
put computeDefault(tSettings["ios,iPhone X icon"], empty) into field "iPhone X Icon"
147148
put computeDefault(tSettings["ios,ipad icon"], empty) into field "iPad Icon"
148149
put computeDefault(tSettings["ios,ipad retina icon"], empty) into field "iPad Retina Icon"
149150
put computeDefault(tSettings["ios,iOS 7 ipad icon"], empty) into field "iOS 7 iPad Icon"
@@ -155,6 +156,8 @@ on updateSettings
155156
put computeDefault(tSettings["ios,iPhone 6 splash"], empty) into field "iPhone 6 Splash"
156157
put computeDefault(tSettings["ios,iPhone 6 Plus Portrait splash"], empty) into field "iPhone 6 Plus Portrait Splash"
157158
put computeDefault(tSettings["ios,iPhone 6 Plus Landscape splash"], empty) into field "iPhone 6 Plus Landscape Splash"
159+
put computeDefault(tSettings["ios,iPhone X Portrait splash"], empty) into field "iPhone X Portrait Splash"
160+
put computeDefault(tSettings["ios,iPhone X Landscape splash"], empty) into field "iPhone X Landscape Splash"
158161
put computeDefault(tSettings["ios,ipad portrait splash"], empty) into field "iPad Portrait Splash"
159162
put computeDefault(tSettings["ios,ipad landscape splash"], empty) into field "iPad Landscape Splash"
160163
put computeDefault(tSettings["ios,ipad retina portrait splash"], empty) into field "iPad Retina Portrait Splash"
@@ -322,6 +325,8 @@ command updateOrientationSettings
322325
if the enabled of button "iPhone Intial Orientation" then
323326
set the enabled of group "iPhone 6 Plus Portrait Splash" to tInitialOrientation contains "portrait"
324327
set the enabled of group "iPhone 6 Plus Landscape Splash" to tInitialOrientation contains "landscape"
328+
set the enabled of group "iPhone X Portrait Splash" to tInitialOrientation contains "portrait"
329+
set the enabled of group "iPhone X Landscape Splash" to tInitialOrientation contains "landscape"
325330
end if
326331
end updateOrientationSettings
327332

@@ -335,6 +340,7 @@ command enableDeviceSpecificSettings pDevices
335340
set the enabled of group "Retina Icon" to (1 is among the items of pDevices)
336341
set the enabled of group "iOS 7 Retina Icon" to (1 is among the items of pDevices)
337342
set the enabled of group "iPhone 6 Plus Icon" to (1 is among the items of pDevices)
343+
set the enabled of group "iPhone X Icon" to (1 is among the items of pDevices)
338344
set the enabled of group "iPad Icon" to (2 is among the items of pDevices)
339345
set the enabled of group "iPad Retina Icon" to (2 is among the items of pDevices)
340346
set the enabled of group "iOS 7 iPad Icon" to (2 is among the items of pDevices)
@@ -346,6 +352,8 @@ command enableDeviceSpecificSettings pDevices
346352
set the enabled of group "iPhone 6 Splash" to (1 is among the items of pDevices)
347353
set the enabled of group "iPhone 6 Plus Portrait Splash" to (1 is among the items of pDevices)
348354
set the enabled of group "iPhone 6 Plus Landscape Splash" to (1 is among the items of pDevices)
355+
set the enabled of group "iPhone X Portrait Splash" to (1 is among the items of pDevices)
356+
set the enabled of group "iPhone X Landscape Splash" to (1 is among the items of pDevices)
349357
set the enabled of group "iPad Portrait Splash" to (2 is among the items of pDevices)
350358
set the enabled of group "iPad Landscape Splash" to (2 is among the items of pDevices)
351359
set the enabled of group "iPad Retina Portrait Splash" to (2 is among the items of pDevices)
@@ -434,11 +442,11 @@ on tipDisplayUpdate
434442
if the visible of group "iOSCommercialTip" then
435443
set the topLeft of group "iosBuild" to 12,136
436444
set the topLeft of group "iOS Settings" to -1,136
437-
set the cSize of this card to 1024,726
445+
set the cSize of this card to 1024,796
438446
else
439447
set the topLeft of group "iOS Settings" to -1,67
440448
set the topLeft of group "iosBuild" to 12,68
441-
set the cSize of this card to 1024,676
449+
set the cSize of this card to 1024,746
442450
end if
443451
updateCardSize
444452
end tipDisplayUpdate

0 commit comments

Comments
 (0)