Icon script changes

A partial update that does not include managing the white variants of the icons,
This commit is contained in:
Philip Abbey
2025-11-02 13:14:31 +00:00
parent 8360a3e4a2
commit 643c4aa2e5
3 changed files with 9 additions and 2 deletions

View File

@@ -44,15 +44,22 @@ Half = 2
# Original icons for 416x416 screen size with 48x48 icons # Original icons for 416x416 screen size with 48x48 icons
original = (96, 48, 24) original = (96, 48, 24)
# The icons need to scale as a ratio of screen size 48:416 pixels
#
# Icon 55 53 48 46 42 37 32 30 28 26 24 21 19 18
# Screen 480 454 416 390 360 320 280 260 240 218 208 176 166 156
# Convert icons to different screen sizes by these parameters # Convert icons to different screen sizes by these parameters
lookup = { lookup = {
# Doub Sing Half # Doub Sing Half
# 0 1 2 # 0 1 2
480: (110, 55, 28),
454: (106, 53, 27), 454: (106, 53, 27),
# 416: ( 96, 48, 24), # 416: ( 96, 48, 24),
390: ( 90, 46, 23), 390: ( 90, 46, 23),
360: ( 84, 42, 21), 360: ( 84, 42, 21),
320: ( 74, 38, 19), 320: ( 74, 38, 19),
295: ( 68, 34, 17), # Especially for the instinct3amoled50mm device that clip the icons
280: ( 64, 32, 16), 280: ( 64, 32, 16),
260: ( 60, 30, 15), 260: ( 60, 30, 15),
240: ( 56, 28, 14), 240: ( 56, 28, 14),

View File

@@ -40,7 +40,7 @@ output_dir_prefix = 'resources-launcher-'
input_dir = output_dir_prefix + '70-70' input_dir = output_dir_prefix + '70-70'
# Convert icons to different screen sizes by these parameters # Convert icons to different screen sizes by these parameters
lookup = [26, 30, 33, 35, 36, 40, 54, 60, 61, 62, 65, 80] lookup = [26, 30, 33, 35, 36, 38, 40, 52, 54, 56, 60, 61, 62, 65, 68, 80]
# Delete all but the original 48x48 icon directories # Delete all but the original 48x48 icon directories
for entry in os.listdir("."): for entry in os.listdir("."):

View File

@@ -143,7 +143,7 @@ fenix8solar51mm.resourcePath = $(fenix8solar51mm.resourcePath);resources-launche
fenixchronos.resourcePath = $(fenixchronos.resourcePath);resources-launcher-36-36;resources-icons-26 fenixchronos.resourcePath = $(fenixchronos.resourcePath);resources-launcher-36-36;resources-icons-26
# Screen Size 416x416 launcher icon size 60x60 # Screen Size 416x416 launcher icon size 60x60
fenixe.resourcePath = $(fenixe.resourcePath);resources-launcher-60-60;resources-icons-48 fenixe.resourcePath = $(fenixe.resourcePath);resources-launcher-60-60;resources-icons-48
# Screen Size 390 x 390 launcher icon size 54x54 # Screen Size 390x390 launcher icon size 54x54
fr165.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46 fr165.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46
fr165m.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46 fr165m.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46
# Screen Size 240x240 launcher icon size 40x40 # Screen Size 240x240 launcher icon size 40x40