mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
30 lines
896 B
Python
30 lines
896 B
Python
![]() |
|
||
|
|
||
|
class CTkColorManager:
|
||
|
MAIN = ("#1C94CF", "#1C94CF")
|
||
|
MAIN_HOVER = ("#5FB4DD", "#5FB4DD")
|
||
|
ENTRY = ("white", "#222222")
|
||
|
TEXT = ("black", "white")
|
||
|
SLIDER_BG = ("#6B6B6B", "#222222")
|
||
|
PROGRESS_BG = ("#6B6B6B", "#222222")
|
||
|
FRAME = ("#D4D5D6", "#3F3F3F")
|
||
|
FRAME_2 = ("#505050", "#505050")
|
||
|
|
||
|
@classmethod
|
||
|
def set_theme_color(cls, hex_color, hex_color_hover):
|
||
|
cls.MAIN = (hex_color, hex_color)
|
||
|
cls.MAIN_HOVER = (hex_color_hover, hex_color_hover)
|
||
|
|
||
|
print(CTkColorManager.MAIN, id(CTkColorManager))
|
||
|
|
||
|
@classmethod
|
||
|
def set_theme(cls, main_color):
|
||
|
if main_color.lower() == "green":
|
||
|
cls.set_theme_color("#2EDEA4", "#82FCD4")
|
||
|
|
||
|
elif main_color.lower() == "blue":
|
||
|
cls.set_theme_color("#1C94CF", "#5FB4DD")
|
||
|
|
||
|
elif main_color.lower() == "blue":
|
||
|
cls.set_theme_color("#1C94CF", "#5FB4DD")
|