From 1c3a835448dcff6b182e120a1e135185943c21ff Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Tue, 25 Jan 2022 16:00:48 +0100 Subject: [PATCH] Remove icons from watchface apps They are not displayed anywhere but they take space Signed-off-by: Francesco Gazzetta --- wasp/apps/clock.py | 2 -- wasp/apps/dual_clock.py | 25 ------------------------- wasp/apps/fibonacci_clock.py | 24 ------------------------ wasp/apps/word_clock.py | 3 --- 4 files changed, 54 deletions(-) diff --git a/wasp/apps/clock.py b/wasp/apps/clock.py index cdf465e..d9e489f 100644 --- a/wasp/apps/clock.py +++ b/wasp/apps/clock.py @@ -12,7 +12,6 @@ Shows a time (as HH:MM) together with a battery meter and the date. import wasp -import icons import fonts.clock as digits DIGITS = ( @@ -26,7 +25,6 @@ MONTH = 'JanFebMarAprMayJunJulAugSepOctNovDec' class ClockApp(): """Simple digital clock application.""" NAME = 'Clock' - ICON = icons.clock def foreground(self): """Activate the application. diff --git a/wasp/apps/dual_clock.py b/wasp/apps/dual_clock.py index 76fea2c..ff57fbd 100644 --- a/wasp/apps/dual_clock.py +++ b/wasp/apps/dual_clock.py @@ -12,7 +12,6 @@ Shows a time (as HH and MM vertically) together with a battery meter. import wasp -import icons import fonts.clock_dual as digits DIGITS = ( @@ -25,30 +24,6 @@ DIGITS = ( class DualClockApp(): """Simple digital clock application.""" NAME = 'Dual' - # 2-bit RLE, generated from clock_dual_icon.png, 298 bytes - ICON = ( - b'\x02' - b'`@' - b'?\xff\xc1@\xacF\r\xc6?\x06H\x0b\xca?\x04H' - b'\n\xcc?\x03C\x02C\n\xc4\x05\xc4?\x07C\t\xc4' - b'\x07\xc3?\x07C\t\xc3\t\xc2?\x07C\t\xc3\t\xc3' - b'?\x06C\t\xc3\t\xc3?\x06C\t\xc3\t\xc3?\x06' - b'C\t\xc4\x07\xc4?\x06C\n\xc4\x05\xc5?\x06C\n' - b'\xca\x01\xc3?\x06C\x0b\xc9\x01\xc3?\x06C\r\xc5\x03' - b'\xc3?\x06C\x15\xc3?\x06C\x14\xc4?\x06C\x14\xc3' - b'?\x07C\x14\xc3?\x07C\x13\xc4?\x07C\x0b\xc1\x05' - b'\xc5?\x03M\x06\xca?\x04M\x06\xc9?\x05M\x07\xc6' - b'?\xff\xedE\x0b\xc8?\x07I\x07\xcc?\x04K\x06\xce' - b'?\x02D\x03D\x06\xc2\x08\xc4?\x01D\x05D\x10\xc4' - b'?\x00C\x07C\x11\xc3>D\x07D\x10\xc3>C\t' - b'C\x10\xc3>C\tC\x10\xc3>C\tC\x0f\xc4>' - b'C\tC\x0e\xc4?\x00C\tC\r\xc5?\x00C\t' - b'C\x0c\xc5?\x01C\tC\x0b\xc5?\x02C\tC\n' - b'\xc5?\x03C\tC\t\xc5?\x04D\x07D\x08\xc4?' - b'\x07C\x07C\x08\xc4?\x08C\x06D\x07\xc4?\nD' - b'\x03D\x07\xc3?\x0cK\x06\xcf?\x02I\x07\xcf?\x04' - b'E\t\xcf?\xff\xff\xe4' - ) _min = None def foreground(self): diff --git a/wasp/apps/fibonacci_clock.py b/wasp/apps/fibonacci_clock.py index 7124ebe..3e9fadc 100644 --- a/wasp/apps/fibonacci_clock.py +++ b/wasp/apps/fibonacci_clock.py @@ -27,39 +27,15 @@ result by 5 to get the actual number. """ import wasp -import icons COLORS = [0xffff,0xf800,0x07e0,0x001f] # White, red, green and blue FIELDS = b'\x05\x03\x02\x01\x01' MONTH = 'JanFebMarAprMayJunJulAugSepOctNovDec' -# 2-bit RLE, generated from res/fibo_icon.png, 246 bytes -icon = ( - b'\x02' - b'`@' - b'?\xff\xffk\xd3\x01\xc9\x01@\x1er\x10\xd3\x01\xc9\x01' - b'r\x10\xd3\x01\xc9\x01r\x10\xd3\x01\xc9\x01r\x10\xd3\x01' - b'\xc9\x01r\x10\xd3\x01\xc9\x01r\x10\xd3\x01\xc9\x01r\x10' - b'\xd3\x01\xc9\x01r\x10\xd3\x01\xc9\x01r\x10\xd3\x0br\x10' - b'\xd3\x01I\x01r\x10\xd3\x01I\x01r\x10\xd3\x01I\x01' - b'r\x10\xd3\x01I\x01r\x10\xd3\x01I\x01r\x10\xd3\x01' - b'I\x01r\x10\xd3\x01I\x01r\x10\xd3\x01I\x01r\x10' - b'\xd3\x01I\x01r.r\x10\xdd\x01r\x10\xdd\x01r\x10' - b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' - b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' - b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' - b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' - b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' - b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' - b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r?' - b'\xff\xffk' -) - class FibonacciClockApp(): """Displays the time as a Fibonacci Clock. """ NAME = 'Fibo' - ICON = icon def foreground(self): """Activate the application.""" diff --git a/wasp/apps/word_clock.py b/wasp/apps/word_clock.py index 6bc3d45..c1504c0 100644 --- a/wasp/apps/word_clock.py +++ b/wasp/apps/word_clock.py @@ -14,15 +14,12 @@ Shows a time as words together with a battery meter and the date. import wasp -import icons - MONTH = 'JanFebMarAprMayJunJulAugSepOctNovDec' class WordClockApp(): """Simple digital clock application.""" NAME = 'WordClk' - ICON = icons.app def foreground(self): """Activate the application.