diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-10-10 13:06:44 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-10-10 13:06:44 (GMT) |
| commit | aef95e6d809b71f86110423914b34f6f13fb3795 (patch) | |
| tree | e8ecaa993e45ac723d605f5e6aedd06d7afb3d4e | |
| parent | c1c66fb487113acbd4b2b7a722c3782d5a962e08 (diff) | |
apps: fibonacci_clock: Add an simple icon
For some users the icon is pointless because they would rather install
the clock on the quick ring but this clock is something of a novelty so
it would be quite reasonable to only launch it when in the mood for
decoding something!
Happily the icon compresses nicely too!
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
| -rw-r--r-- | wasp/apps/fibonacci_clock.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/wasp/apps/fibonacci_clock.py b/wasp/apps/fibonacci_clock.py index 9e50add..9e4a794 100644 --- a/wasp/apps/fibonacci_clock.py +++ b/wasp/apps/fibonacci_clock.py @@ -24,11 +24,33 @@ import icons 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 = icons.app + ICON = icon def __init__(self): self.meter = wasp.widgets.BatteryMeter() |
