From 643c4aa2e53277f36a59ca694a089face8da3ca4 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Sun, 2 Nov 2025 13:14:31 +0000 Subject: [PATCH] Icon script changes A partial update that does not include managing the white variants of the icons, --- iconResize.py | 7 +++++++ launcherIconResize.py | 2 +- monkey.jungle | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/iconResize.py b/iconResize.py index 24fb633..44e1f85 100644 --- a/iconResize.py +++ b/iconResize.py @@ -44,15 +44,22 @@ Half = 2 # Original icons for 416x416 screen size with 48x48 icons 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 lookup = { # Doub Sing Half # 0 1 2 + 480: (110, 55, 28), 454: (106, 53, 27), # 416: ( 96, 48, 24), 390: ( 90, 46, 23), 360: ( 84, 42, 21), 320: ( 74, 38, 19), + 295: ( 68, 34, 17), # Especially for the instinct3amoled50mm device that clip the icons 280: ( 64, 32, 16), 260: ( 60, 30, 15), 240: ( 56, 28, 14), diff --git a/launcherIconResize.py b/launcherIconResize.py index 0dc8b1a..da9e7ed 100644 --- a/launcherIconResize.py +++ b/launcherIconResize.py @@ -40,7 +40,7 @@ output_dir_prefix = 'resources-launcher-' input_dir = output_dir_prefix + '70-70' # 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 for entry in os.listdir("."): diff --git a/monkey.jungle b/monkey.jungle index c76e83d..547bd1c 100644 --- a/monkey.jungle +++ b/monkey.jungle @@ -143,7 +143,7 @@ fenix8solar51mm.resourcePath = $(fenix8solar51mm.resourcePath);resources-launche fenixchronos.resourcePath = $(fenixchronos.resourcePath);resources-launcher-36-36;resources-icons-26 # Screen Size 416x416 launcher icon size 60x60 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 fr165m.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46 # Screen Size 240x240 launcher icon size 40x40