mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 19:03:23 +03:00
theme: The very start of actually using defined constants for themes
This commit is contained in:
parent
4cea8fa34f
commit
e4055530b4
7
theme.py
7
theme.py
@ -123,6 +123,13 @@ elif sys.platform == 'linux':
|
|||||||
|
|
||||||
class _Theme(object):
|
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:
|
def __init__(self) -> None:
|
||||||
self.active = None # Starts out with no theme
|
self.active = None # Starts out with no theme
|
||||||
self.minwidth: Optional[int] = None
|
self.minwidth: Optional[int] = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user