mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
theme fixes
This commit is contained in:
parent
965a7ff87d
commit
afc8ce8c3d
@ -5,7 +5,7 @@
|
||||
"button_hover": ["#A7C2E0", "#5FB4DD"],
|
||||
"button_border": ["#A7C2E0", "#5FB4DD"],
|
||||
"checkbox_border": ["gray20", "#ededed"],
|
||||
"entry": [null, null],
|
||||
"entry": ["white", "black"],
|
||||
"entry_border": ["gray65", "gray40"],
|
||||
"entry_placeholder_text": ["gray52", "gray62"],
|
||||
"frame_border": ["#A7C2E0", "#5FB4DD"],
|
||||
@ -40,7 +40,7 @@
|
||||
},
|
||||
"shape": {
|
||||
"button_corner_radius": 8,
|
||||
"button_border_width": 2,
|
||||
"button_border_width": 0,
|
||||
"checkbox_corner_radius": 6,
|
||||
"checkbox_border_width": 3,
|
||||
"entry_border_width": 2,
|
||||
@ -51,7 +51,7 @@
|
||||
"progressbar_corner_radius": 100,
|
||||
"slider_border_width": 5,
|
||||
"slider_corner_radius": 8,
|
||||
"slider_button_length": 4,
|
||||
"slider_button_corner_radius": 6
|
||||
"slider_button_length": 0,
|
||||
"slider_button_corner_radius": 8
|
||||
}
|
||||
}
|
@ -18,7 +18,7 @@ class CTk(tkinter.Tk):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||
|
||||
self.fg_color = CTkThemeManager.WINDOW_BG_COLOR if fg_color == "default_theme" else fg_color
|
||||
self.fg_color = CTkThemeManager.theme["color"]["window_bg_color"] if fg_color == "default_theme" else fg_color
|
||||
|
||||
if "bg" in kwargs:
|
||||
self.fg_color = kwargs["bg"]
|
||||
|
Loading…
Reference in New Issue
Block a user