1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

theme: The very start of actually using defined constants for themes

This commit is contained in:
Athanasius 2022-12-05 10:49:05 +00:00
parent 4cea8fa34f
commit e4055530b4
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -123,6 +123,13 @@ elif sys.platform == 'linux':
class _Theme(object):
# Enum ? Remember these are, probably, based on 'value' of a tk
# RadioButton set. Looking in prefs.py, they *appear* to be hard-coded
# there as well.
THEME_DEFAULT = 0
THEME_DARK = 1
THEME_TRANSPARENT = 2
def __init__(self) -> None:
self.active = None # Starts out with no theme
self.minwidth: Optional[int] = None