diff --git a/configure.py b/configure.py index 9d799969..7e1dee57 100755 --- a/configure.py +++ b/configure.py @@ -227,7 +227,7 @@ class TuringConfigWindow: def __init__(self): self.window = Tk() self.window.title('Turing System Monitor configuration') - self.window.geometry("820x580") + self.window.geometry("820x590") self.window.iconphoto(True, PhotoImage(file=str( MAIN_DIRECTORY / "res/icons/monitor-icon-17865/64.png"))) # When window gets focus again, reload theme preview in case it has been updated by theme editor self.window.bind("", self.on_theme_change) @@ -237,7 +237,7 @@ def __init__(self): self.more_config_window = MoreConfigWindow(self) # Make TK look better with Sun Valley ttk theme - sv_ttk.set_theme("light") + sv_ttk.use_light_theme() self.theme_preview_img = None self.theme_preview = ttk.Label(self.window) @@ -336,22 +336,25 @@ def __init__(self): version_label = ttk.Label(self.window, text=version, foreground=DISABLED_COLOR) version_label.place(x=5, y=550) - self.weather_ping_btn = ttk.Button(self.window, text="Weather & ping", + self.weather_ping_btn = ttk.Button(self.window, text="ā›… Weather\n🌐 Ping", command=lambda: self.on_weatherping_click()) - self.weather_ping_btn.place(x=80, y=520, height=50, width=130) + self.weather_ping_btn.place(x=80, y=520, height=60, width=130) - self.open_theme_folder_btn = ttk.Button(self.window, text="Open themes\nfolder", + self.open_theme_folder_btn = ttk.Button(self.window, text=" šŸ“ Open\nthemes folder", command=lambda: self.on_open_theme_folder_click()) - self.open_theme_folder_btn.place(x=220, y=520, height=50, width=130) + self.open_theme_folder_btn.place(x=220, y=520, height=60, width=130) - self.edit_theme_btn = ttk.Button(self.window, text="Edit theme", command=lambda: self.on_theme_editor_click()) - self.edit_theme_btn.place(x=360, y=520, height=50, width=130) + self.edit_theme_btn = ttk.Button(self.window, text="šŸŽØ Edit theme", command=lambda: self.on_theme_editor_click()) + self.edit_theme_btn.place(x=360, y=520, height=60, width=130) - self.save_btn = ttk.Button(self.window, text="Save settings", command=lambda: self.on_save_click()) - self.save_btn.place(x=500, y=520, height=50, width=130) + self.save_btn = ttk.Button(self.window, text="šŸ’¾ Save", command=lambda: self.on_save_click()) + self.save_btn.place(x=500, y=520, height=60, width=130) - self.save_run_btn = ttk.Button(self.window, text="Save and run", command=lambda: self.on_saverun_click()) - self.save_run_btn.place(x=640, y=520, height=50, width=130) + style = ttk.Style() + style.configure("Green.TButton", foreground="green") + self.save_run_btn = ttk.Button(self.window, text="ā–¶ļø Save and run", command=lambda: self.on_saverun_click(), + style="Green.TButton") + self.save_run_btn.place(x=640, y=520, height=60, width=140) self.config = None self.load_config_values() @@ -657,7 +660,7 @@ def __init__(self, main_window: TuringConfigWindow): self.main_window = main_window # Make TK look better with Sun Valley ttk theme - sv_ttk.set_theme("light") + sv_ttk.use_light_theme() self.ping_label = ttk.Label(self.window, text='Hostname / IP to ping') self.ping_label.place(x=10, y=10)