COMMENT
Creates transparent icons and widgets for your Home Screen.
Can be used with @nyuszika7h’s Icon Themer (https://routinehub.co/shortcut/6565/) or the usual custom icon Shortcut trick.
SCRIPTING
If
Shortcut Input
does not have any value
PHOTOS

Photos
VARIABLES
Set variable
Input
to
Photos
SCRIPTING
Otherwise
VARIABLES
Set variable
Input
to
Shortcut Input
SCRIPTING
End If

If Result
MEDIA
Get
Height
from
Input

Height
SCRIPTING
If
Height
is
2688
COMMENT
iPhone 11 Pro Max / XS Max
- X position of top-left icon
- Y position of top-left icon
- Icon size (square)
- X space between icons
- Y space between icons
TEXT
96
228
192
93
123

Text
VARIABLES
Set variable
Info
to
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Height
is
2436
COMMENT
iPhone 11 Pro / XS / X
TEXT
81
213
180
81
105

Text
VARIABLES
Set variable
Info
to
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Height
is
1792
COMMENT
iPhone 11 / XR
TEXT
64
160
128
62
82

Text
VARIABLES
Set variable
Info
to
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Height
is
2208
COMMENT
iPhone 8 Plus / 7 Plus / 6s Plus
TEXT
105
114
180
104
111

Text
VARIABLES
Set variable
Info
to
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Height
is
1334
COMMENT
iPhone SE 2 / 8 / 7 / 6s
TEXT
54
56
120
54
56

Text
VARIABLES
Set variable
Info
to
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Height
is
1136
COMMENT
iPhone SE
TEXT
32
54
120
32
56
50

Text
VARIABLES
Set variable
Info
to
Text
NUMBER
5

Number
VARIABLES
Set variable
Rows
to
Number
SCRIPTING
End If

If Result
SCRIPTING
If
Info
does not have any value
TEXT
Unknown screen size detected. Make sure you're sharing a screenshot directly from the home screen. If you have Display Zoom set to Zoomed, try setting it to Standard.

Text
SCRIPTING
Show alert
Shortcut Failed
SCRIPTING
Exit shortcut with
Text
SCRIPTING
End If

If Result
TEXT
Split
Info
by
New Lines

Split Text
SCRIPTING
Get
Item At Index
1
from
Split Text

Item from List
VARIABLES
Set variable
(1,1) X
to
Item from List
SCRIPTING
Get
Item At Index
2
from
Split Text

Item from List
VARIABLES
Set variable
(1,1) Y
to
Item from List
SCRIPTING
Get
Item At Index
3
from
Split Text

Item from List
VARIABLES
Set variable
Icon Size
to
Item from List
SCRIPTING
Get
Item At Index
4
from
Split Text

Item from List
VARIABLES
Set variable
X Space Between Icons
to
Item from List
SCRIPTING
Get
Item At Index
5
from
Split Text

Item from List
VARIABLES
Set variable
Y Space Between Icons
to
Item from List
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
⏺ App Icon

Menu Result
TEXT
App Icon

Text
VARIABLES
Set variable
Choice
to
Text
VARIABLES
Set variable
Width
to
Icon Size
VARIABLES
Set variable
Height
to
Icon Size
SCRIPTING
If
Rows
is
5
LIST

List
VARIABLES
Set variable
List
to
List
SCRIPTING
Otherwise
LIST

List
VARIABLES
Set variable
List
to
List
SCRIPTING
End If

If Result
SCRIPTING
Choose from
List
Prompt
↕️ Up-Down Position

Chosen Item
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
Y
to
Calculation Result
LIST

List
SCRIPTING
Choose from
List
Prompt
↔️ Left-Right Position

Chosen Item
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
X
to
Calculation Result
SCRIPTING
◾️ Small Widget

Menu Result
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
Width
to
Calculation Result
VARIABLES
Set variable
Height
to
Calculation Result
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
↖️ Top-Left

Menu Result
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
X
to
Calculation Result
VARIABLES
Set variable
Y
to
(1,1) Y
SCRIPTING
↗️ Top-Right

Menu Result
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
X
to
Calculation Result
VARIABLES
Set variable
Y
to
(1,1) Y
SCRIPTING
⬅️ Middle-Left

Menu Result
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
X
to
Calculation Result
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
Y
to
Calculation Result
SCRIPTING
➡️ Middle-Right

Menu Result
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
X
to
Calculation Result
MISSING
calculateexpression Under Construction
VARIABLES
Set variable
Y
to
Calculation Result
SCRIPTING
↙️ Bottom-Left

Menu Result