diff --git a/customtkinter/assets/themes/blue.json b/customtkinter/assets/themes/blue.json index cb2ce83..24634f9 100644 --- a/customtkinter/assets/themes/blue.json +++ b/customtkinter/assets/themes/blue.json @@ -28,7 +28,6 @@ "switch_button": ["gray36", "#D5D9DE"], "switch_button_hover": ["gray20", "gray100"] }, - "text": { "macOS": { "font": "SF Display", @@ -42,7 +41,6 @@ "font": "Roboto", "size": -13 } - }, "shape": { "button_corner_radius": 8, diff --git a/customtkinter/assets/themes/dark-blue.json b/customtkinter/assets/themes/dark-blue.json index 49714e2..fb76562 100644 --- a/customtkinter/assets/themes/dark-blue.json +++ b/customtkinter/assets/themes/dark-blue.json @@ -29,7 +29,6 @@ "switch_button_hover": ["gray30", "gray90"], "darken_factor": 0.8 }, - "text": { "macOS": { "font": "SF Display", @@ -43,7 +42,6 @@ "font": "Roboto", "size": -13 } - }, "shape": { "button_corner_radius": 8, diff --git a/customtkinter/assets/themes/green.json b/customtkinter/assets/themes/green.json index 1ea92d7..d8de3f3 100644 --- a/customtkinter/assets/themes/green.json +++ b/customtkinter/assets/themes/green.json @@ -1,4 +1,3 @@ - { "color": { "window_bg_color": ["gray92", "gray12"], @@ -30,7 +29,6 @@ "switch_button_hover": ["gray30", "gray90"], "darken_factor": 0.8 }, - "text": { "macOS": { "font": "SF Display", @@ -44,7 +42,6 @@ "font": "Roboto", "size": -13 } - }, "shape": { "button_corner_radius": 6, diff --git a/customtkinter/assets/themes/sweetkind.json b/customtkinter/assets/themes/sweetkind.json new file mode 100644 index 0000000..4aa6e87 --- /dev/null +++ b/customtkinter/assets/themes/sweetkind.json @@ -0,0 +1,69 @@ +{ + "color": { + "window_bg_color": ["#181b28", "#181b28"], + "button": ["#212435", "#212435"], + "button_hover": ["#171926", "#171926"], + "button_border": ["#080b12", "#080b12"], + "checkbox_border": ["#01e9c4", "#01e9c4"], + "checkmark": ["#01e9c4", "#01e9c4"], + "entry": ["#212435", "#212435"], + "entry_border": ["#080b12", "#080b12"], + "entry_placeholder_text": ["#cdc8ce", "#cdc8ce"], + "frame_border": ["#10121f", "#10121f"], + "frame_low": ["#181b28", "#181b28"], + "frame_high": ["#181b28", "#181b28"], + "label": [null, null], + "text": ["#cdc8ce", "#cdc8ce"], + "text_disabled": ["#7a8894", "#7a8894"], + "text_button_disabled": ["#7a8894", "#7a8894"], + "progressbar": ["#c452f8", "#c452f8"], + "progressbar_progress": ["#608BD5", "#395E9C"], + "progressbar_border": ["#0d101f", "#0d101f"], + "slider": ["#c452f8", "#c452f8"], + "slider_progress": ["#363844", "#363844"], + "slider_button": ["#5b40c5", "#5b40c5"], + "slider_button_hover": ["#c452f8", "#c452f8"], + "switch": ["#1f2233", "#1f2233"], + "switch_progress": ["#00e6c3", "#00e6c3"], + "switch_button": ["#2e324a", "#2e324a"], + "switch_button_hover": ["#2e324a", "#2e324a"], + "darken_factor": 0.1 + }, + "text": { + "macOS": { + "font": "SF Display", + "size": -13 + }, + "Windows": { + "font": "Roboto", + "size": -13 + }, + "Linux": { + "font": "Roboto", + "size": -13 + } + }, + "shape": { + "button_corner_radius": 8, + "button_border_width": 2, + "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": 2, + "label_corner_radius": 8, + "progressbar_border_width": 2, + "progressbar_corner_radius": 1000, + "slider_border_width": 6, + "slider_corner_radius": 8, + "slider_button_length": 0, + "slider_button_corner_radius": 1000, + "switch_border_width": 3, + "switch_corner_radius": 1000, + "switch_button_corner_radius": 1000, + "switch_button_length": 2 + } +} \ No newline at end of file diff --git a/customtkinter/theme_manager.py b/customtkinter/theme_manager.py index 5844b75..90f791e 100644 --- a/customtkinter/theme_manager.py +++ b/customtkinter/theme_manager.py @@ -6,7 +6,7 @@ import json class CTkThemeManager: theme = {} # contains all the theme data - built_in_themes = ["blue", "green", "dark-blue"] + built_in_themes = ["blue", "green", "dark-blue", "sweetkind"] @classmethod def load_theme(cls, theme_name_or_path: str):