From 363d4cf609402faa1cd7afee94414fd3666f8c97 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 30 Aug 2020 12:28:38 -0400 Subject: [PATCH] Start color map --- piker/ui/_style.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/piker/ui/_style.py b/piker/ui/_style.py index ea497a73..18e2c94e 100644 --- a/piker/ui/_style.py +++ b/piker/ui/_style.py @@ -27,3 +27,19 @@ def enable_tina_mode() -> None: """ # white background (for tinas like our pal xb) pg.setConfigOption('background', 'w') + + +def hcolor(name: str): + """Hex color codes by hipster speak. + """ + return '#' + { + 'black': '000000', # lives matter + 'white': 'ffffff', # for tinas and sunbathers + 'gray': '808080', # like the kick + 'dad_blue': '326693', # like his shirt + 'vwap_blue': '0582fb', + + # traditional + 'tina_green': '00cc00', + 'tina_red': 'fa0000', + }[name]