fixed fg_color key for CTkSwitch #1482

This commit is contained in:
Tom Schimansky 2023-04-23 11:36:50 +02:00
parent 838bc7885b
commit 2ee496ed28
4 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@
"corner_radius": 1000, "corner_radius": 1000,
"border_width": 3, "border_width": 3,
"button_length": 0, "button_length": 0,
"fg_Color": ["#939BA2", "#4A4D50"], "fg_color": ["#939BA2", "#4A4D50"],
"progress_color": ["#3B8ED0", "#1F6AA5"], "progress_color": ["#3B8ED0", "#1F6AA5"],
"button_color": ["gray36", "#D5D9DE"], "button_color": ["gray36", "#D5D9DE"],
"button_hover_color": ["gray20", "gray100"], "button_hover_color": ["gray20", "gray100"],

View File

@ -48,7 +48,7 @@
"corner_radius": 1000, "corner_radius": 1000,
"border_width": 3, "border_width": 3,
"button_length": 0, "button_length": 0,
"fg_Color": ["#939BA2", "#4A4D50"], "fg_color": ["#939BA2", "#4A4D50"],
"progress_color": ["#3a7ebf", "#1f538d"], "progress_color": ["#3a7ebf", "#1f538d"],
"button_color": ["gray36", "#D5D9DE"], "button_color": ["gray36", "#D5D9DE"],
"button_hover_color": ["gray20", "gray100"], "button_hover_color": ["gray20", "gray100"],

View File

@ -48,7 +48,7 @@
"corner_radius": 1000, "corner_radius": 1000,
"border_width": 3, "border_width": 3,
"button_length": 0, "button_length": 0,
"fg_Color": ["#939BA2", "#4A4D50"], "fg_color": ["#939BA2", "#4A4D50"],
"progress_color": ["#2CC985", "#2FA572"], "progress_color": ["#2CC985", "#2FA572"],
"button_color": ["gray36", "#D5D9DE"], "button_color": ["gray36", "#D5D9DE"],
"button_hover_color": ["gray20", "gray100"], "button_hover_color": ["gray20", "gray100"],

View File

@ -54,7 +54,7 @@ class CTkSwitch(CTkBaseClass):
# color # color
self._border_color = self._check_color_type(border_color, transparency=True) self._border_color = self._check_color_type(border_color, transparency=True)
self._fg_color = ThemeManager.theme["CTkSwitch"]["fg_Color"] if fg_color is None else self._check_color_type(fg_color) self._fg_color = ThemeManager.theme["CTkSwitch"]["fg_color"] if fg_color is None else self._check_color_type(fg_color)
self._progress_color = ThemeManager.theme["CTkSwitch"]["progress_color"] if progress_color is None else self._check_color_type(progress_color, transparency=True) self._progress_color = ThemeManager.theme["CTkSwitch"]["progress_color"] if progress_color is None else self._check_color_type(progress_color, transparency=True)
self._button_color = ThemeManager.theme["CTkSwitch"]["button_color"] if button_color is None else self._check_color_type(button_color) self._button_color = ThemeManager.theme["CTkSwitch"]["button_color"] if button_color is None else self._check_color_type(button_color)
self._button_hover_color = ThemeManager.theme["CTkSwitch"]["button_hover_color"] if button_hover_color is None else self._check_color_type(button_hover_color) self._button_hover_color = ThemeManager.theme["CTkSwitch"]["button_hover_color"] if button_hover_color is None else self._check_color_type(button_hover_color)