From 2ee496ed28ece351ce53b63ca5eed90267735c44 Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Sun, 23 Apr 2023 11:36:50 +0200 Subject: [PATCH] fixed fg_color key for CTkSwitch #1482 --- customtkinter/assets/themes/blue.json | 2 +- customtkinter/assets/themes/dark-blue.json | 2 +- customtkinter/assets/themes/green.json | 2 +- customtkinter/windows/widgets/ctk_switch.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/customtkinter/assets/themes/blue.json b/customtkinter/assets/themes/blue.json index 838e26b..db3b1d2 100644 --- a/customtkinter/assets/themes/blue.json +++ b/customtkinter/assets/themes/blue.json @@ -48,7 +48,7 @@ "corner_radius": 1000, "border_width": 3, "button_length": 0, - "fg_Color": ["#939BA2", "#4A4D50"], + "fg_color": ["#939BA2", "#4A4D50"], "progress_color": ["#3B8ED0", "#1F6AA5"], "button_color": ["gray36", "#D5D9DE"], "button_hover_color": ["gray20", "gray100"], diff --git a/customtkinter/assets/themes/dark-blue.json b/customtkinter/assets/themes/dark-blue.json index b418cbf..f78766c 100644 --- a/customtkinter/assets/themes/dark-blue.json +++ b/customtkinter/assets/themes/dark-blue.json @@ -48,7 +48,7 @@ "corner_radius": 1000, "border_width": 3, "button_length": 0, - "fg_Color": ["#939BA2", "#4A4D50"], + "fg_color": ["#939BA2", "#4A4D50"], "progress_color": ["#3a7ebf", "#1f538d"], "button_color": ["gray36", "#D5D9DE"], "button_hover_color": ["gray20", "gray100"], diff --git a/customtkinter/assets/themes/green.json b/customtkinter/assets/themes/green.json index cefab6e..a10ada4 100644 --- a/customtkinter/assets/themes/green.json +++ b/customtkinter/assets/themes/green.json @@ -48,7 +48,7 @@ "corner_radius": 1000, "border_width": 3, "button_length": 0, - "fg_Color": ["#939BA2", "#4A4D50"], + "fg_color": ["#939BA2", "#4A4D50"], "progress_color": ["#2CC985", "#2FA572"], "button_color": ["gray36", "#D5D9DE"], "button_hover_color": ["gray20", "gray100"], diff --git a/customtkinter/windows/widgets/ctk_switch.py b/customtkinter/windows/widgets/ctk_switch.py index 6e8de13..2f807e6 100644 --- a/customtkinter/windows/widgets/ctk_switch.py +++ b/customtkinter/windows/widgets/ctk_switch.py @@ -54,7 +54,7 @@ class CTkSwitch(CTkBaseClass): # color 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._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)