Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<FocusIn>", self.on_theme_change)
Expand All @@ -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)
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down
Loading