From d4ffd986e0622b6810ef8835287cb84dfbbdc47a Mon Sep 17 00:00:00 2001 From: TomSchimansky Date: Sun, 6 Mar 2022 23:30:20 +0100 Subject: [PATCH] updated green and dark-blue theme --- customtkinter/assets/themes/dark-blue.json | 33 ++++++++++++---------- customtkinter/assets/themes/green.json | 30 +++++++++++--------- examples/complex_example.py | 2 +- 3 files changed, 36 insertions(+), 29 deletions(-) diff --git a/customtkinter/assets/themes/dark-blue.json b/customtkinter/assets/themes/dark-blue.json index 43f25be..222dc7f 100644 --- a/customtkinter/assets/themes/dark-blue.json +++ b/customtkinter/assets/themes/dark-blue.json @@ -1,23 +1,23 @@ { "color": { - "window_bg_color": ["gray95", "gray10"], + "window_bg_color": ["gray94", "gray10"], "button": ["#608BD5", "#395E9C"], "button_hover": ["#A4BDE6", "#748BB3"], - "button_border": ["gray25", "gray75"], - "checkbox_border": ["gray25", "gray75"], - "entry": ["white", "gray10"], - "entry_border": ["gray65", "gray35"], + "button_border": ["gray25", "gray86"], + "checkbox_border": ["gray40", "gray60"], + "entry": ["white", "gray24"], + "entry_border": ["gray70", "gray32"], "entry_placeholder_text": ["gray52", "gray62"], "frame_border": ["#A7C2E0", "#5FB4DD"], - "frame_low": ["gray88", "gray16"], - "frame_high": ["gray82", "gray20"], + "frame_low": ["gray89", "gray16"], + "frame_high": ["gray84", "gray20"], "label": [null, null], - "text": ["gray20", "gray90"], - "progressbar": ["gray40", "gray6"], + "text": ["gray12", "gray90"], + "progressbar": ["#6B6B6B", "gray6"], "progressbar_progress": ["#608BD5", "#395E9C"], "progressbar_border": ["gray", "gray"], - "slider": ["gray40", "#222222"], - "slider_progress": ["white", "#555555"], + "slider": ["#6B6B6B", "gray6"], + "slider_progress": ["gray70", "gray30"], "slider_button": ["#608BD5", "#395E9C"], "slider_button_hover": ["#A4BDE6", "#748BB3"], "darken_factor": 0.8 @@ -43,15 +43,18 @@ "button_border_width": 0, "checkbox_corner_radius": 7, "checkbox_border_width": 3, + "radiobutton_corner_radius": 1000, + "radiobutton_border_width_unchecked": 3, + "radiobutton_border_width_checked": 6, "entry_border_width": 2, - "frame_corner_radius": 8, + "frame_corner_radius": 10, "frame_border_width": 0, "label_corner_radius": 8, "progressbar_border_width": 0, - "progressbar_corner_radius": 3, + "progressbar_corner_radius": 1000, "slider_border_width": 6, "slider_corner_radius": 8, - "slider_button_length": 12, - "slider_button_corner_radius": 3 + "slider_button_length": 0, + "slider_button_corner_radius": 1000 } } \ No newline at end of file diff --git a/customtkinter/assets/themes/green.json b/customtkinter/assets/themes/green.json index 8b9f502..b1ca05e 100644 --- a/customtkinter/assets/themes/green.json +++ b/customtkinter/assets/themes/green.json @@ -1,22 +1,23 @@ + { "color": { - "window_bg_color": ["gray95", "gray10"], + "window_bg_color": ["gray92", "gray12"], "button": ["#72CF9F", "#11B384"], "button_hover": ["#0E9670", "#0D8A66"], - "button_border": ["gray25", "gray75"], - "checkbox_border": ["gray25", "gray75"], - "entry": ["white", "gray10"], - "entry_border": ["gray65", "gray35"], + "button_border": ["gray25", "gray86"], + "checkbox_border": ["gray40", "gray60"], + "entry": ["white", "gray24"], + "entry_border": ["gray70", "gray32"], "entry_placeholder_text": ["gray52", "gray62"], "frame_border": ["#A7C2E0", "#5FB4DD"], - "frame_low": ["gray88", "gray16"], - "frame_high": ["gray82", "gray20"], + "frame_low": ["gray87", "gray18"], + "frame_high": ["gray82", "gray22"], "label": [null, null], "text": ["gray20", "gray90"], - "progressbar": ["gray40", "gray6"], + "progressbar": ["#6B6B6B", "#222222"], "progressbar_progress": ["#72CF9F", "#11B384"], "progressbar_border": ["gray", "gray"], - "slider": ["gray40", "#222222"], + "slider": ["#6B6B6B", "#222222"], "slider_progress": ["white", "#555555"], "slider_button": ["#72CF9F", "#11B384"], "slider_button_hover": ["#0E9670", "#0D8A66"], @@ -39,19 +40,22 @@ }, "shape": { - "button_corner_radius": 8, + "button_corner_radius": 6, "button_border_width": 0, "checkbox_corner_radius": 7, "checkbox_border_width": 3, + "radiobutton_corner_radius": 1000, + "radiobutton_border_width_unchecked": 3, + "radiobutton_border_width_checked": 6, "entry_border_width": 2, "frame_corner_radius": 10, "frame_border_width": 0, "label_corner_radius": 8, "progressbar_border_width": 0, - "progressbar_corner_radius": 100, + "progressbar_corner_radius": 1000, "slider_border_width": 6, - "slider_corner_radius": 100, + "slider_corner_radius": 8, "slider_button_length": 0, - "slider_button_corner_radius": 100 + "slider_button_corner_radius": 1000 } } \ No newline at end of file diff --git a/examples/complex_example.py b/examples/complex_example.py index fd85316..838fea4 100644 --- a/examples/complex_example.py +++ b/examples/complex_example.py @@ -4,7 +4,7 @@ import customtkinter import sys customtkinter.set_appearance_mode("Dark") # Modes: "System" (standard), "Dark", "Light" -customtkinter.set_default_color_theme("blue") # Themes: "blue" (standard), "green", "dark-blue" +customtkinter.set_default_color_theme("dark-blue") # Themes: "blue" (standard), "green", "dark-blue" class App(customtkinter.CTk):