diff --git a/resources/serena-logs.png b/resources/serena-logs.png deleted file mode 100644 index 8f110b05..00000000 Binary files a/resources/serena-logs.png and /dev/null differ diff --git a/src/serena/gui_log_viewer.py b/src/serena/gui_log_viewer.py index 9cf8d3aa..75e7506c 100644 --- a/src/serena/gui_log_viewer.py +++ b/src/serena/gui_log_viewer.py @@ -202,6 +202,12 @@ class GuiLogViewer: """Run the GUI""" self.running = True try: + # Set app id (avoid app being lumped together with other Python-based apps in Windows taskbar) + if sys.platform == "win32": + import ctypes + + ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("oraios.serena") + self.root = tk.Tk() self.root.title(self.title) self.root.geometry(f"{self.width}x{self.height}") @@ -212,10 +218,12 @@ class GuiLogViewer: self.root.rowconfigure(0, weight=0) # Logo row self.root.rowconfigure(1, weight=1) # Text content row + dashboard_path = Path(__file__).parent.parent.parent / "dashboard" + # Load and display the logo image try: # construct path relative to path of this file - image_path = Path(__file__).parent.parent.parent / "resources" / "serena-logs.png" + image_path = dashboard_path / "serena-logs.png" self.logo_image = tk.PhotoImage(file=image_path) # Create a label to display the logo @@ -273,6 +281,12 @@ class GuiLogViewer: menubar.add_cascade(label="Server", menu=server_menu) self.root.config(menu=menubar) + # Configure icons + icon_16 = tk.PhotoImage(file=dashboard_path / "serena-icon-16.png") + icon_32 = tk.PhotoImage(file=dashboard_path / "serena-icon-32.png") + icon_48 = tk.PhotoImage(file=dashboard_path / "serena-icon-48.png") + self.root.iconphoto(False, icon_48, icon_32, icon_16) + # Start the Tkinter event loop self.root.mainloop()