summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-31 19:12:38 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-31 19:22:54 (GMT)
commitad9714b0dc2f2053d3d31a8cd013d456fefdc93d (patch)
treeaf166d2ae2f69beb637dd036dc41286e64f81472 /tools
parent1eada36ff4953cb6b52e249c2908e5c74a7917d1 (diff)
manager: Recategorize the theme labels for apps
By default bright and mid are white/grey tones, the ui widgets are blue and the spot colours are different variants of orange. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/test_theme.py10
-rwxr-xr-xtools/themer.py20
2 files changed, 18 insertions, 12 deletions
diff --git a/tools/test_theme.py b/tools/test_theme.py
index 2c161ff..b2241d6 100644
--- a/tools/test_theme.py
+++ b/tools/test_theme.py
@@ -9,7 +9,9 @@ class Theme(DefaultTheme):
BATTERY_COLOR = 0x07ff
SMALL_CLOCK_COLOR = 0x599f
NOTIFICATION_COLOR = 0x8fe0
- ACCENT_MID = 0xf800
- ACCENT_LO = 0x001f
- ACCENT_HI = 0x07e0
- SLIDER_DEFAULT_COLOR = 0x7777
+ BRIGHT = 0xffff
+ MID = 0xff00
+ UI = 0x39ff
+ SPOT1 = 0x00ff
+ SPOT2 = 0x44d0
+ CONTRAST = 7
diff --git a/tools/themer.py b/tools/themer.py
index 9eee132..2689133 100755
--- a/tools/themer.py
+++ b/tools/themer.py
@@ -17,10 +17,12 @@ class DefaultTheme():
BATTERY_COLOR = 0x7bef
SMALL_CLOCK_COLOR = 0xe73c
NOTIFICATION_COLOR = 0x7bef
- ACCENT_MID = 0xb5b6
- ACCENT_LO = 0xbdb6
- ACCENT_HI = 0xffff
- SLIDER_DEFAULT_COLOR = 0x39ff
+ BRIGHT = 0xffff
+ MID = 0xbdb6
+ UI = 0x39ff
+ SPOT1 = 0xff00
+ SPOT2 = 0xddd0
+ CONTRAST = 15
def serialize(self) -> bytes:
"""Serializes the theme for use in wasp-os"""
@@ -32,10 +34,12 @@ class DefaultTheme():
*split_bytes(self.BATTERY_COLOR),
*split_bytes(self.SMALL_CLOCK_COLOR),
*split_bytes(self.NOTIFICATION_COLOR),
- *split_bytes(self.ACCENT_MID),
- *split_bytes(self.ACCENT_LO),
- *split_bytes(self.ACCENT_HI),
- *split_bytes(self.SLIDER_DEFAULT_COLOR),
+ *split_bytes(self.BRIGHT),
+ *split_bytes(self.MID),
+ *split_bytes(self.UI),
+ *split_bytes(self.SPOT1),
+ *split_bytes(self.SPOT2),
+ *split_bytes(self.CONTRAST)
])
return theme_bytes