diff --git a/assets/icon.ico b/assets/icon.ico new file mode 100644 index 0000000..3d16212 Binary files /dev/null and b/assets/icon.ico differ diff --git a/assets/logo-circle-32.png b/assets/logo-circle-32.png new file mode 100644 index 0000000..b231b46 Binary files /dev/null and b/assets/logo-circle-32.png differ diff --git a/assets/logo-circle-64.png b/assets/logo-circle-64.png new file mode 100644 index 0000000..c67c373 Binary files /dev/null and b/assets/logo-circle-64.png differ diff --git a/utils/__pycache__/text_to_mic.cpython-312.pyc b/utils/__pycache__/text_to_mic.cpython-312.pyc index 56c517e..b8acb2f 100644 Binary files a/utils/__pycache__/text_to_mic.cpython-312.pyc and b/utils/__pycache__/text_to_mic.cpython-312.pyc differ diff --git a/utils/text_to_mic.py b/utils/text_to_mic.py index 3c6c421..4ea7baf 100644 --- a/utils/text_to_mic.py +++ b/utils/text_to_mic.py @@ -35,7 +35,20 @@ class TextToMic(tk.Tk): def __init__(self): super().__init__() - self.title("Scorchsoft Text to Mic") + self.version = "1.3.5" + self.title(f"Text to Mic by Scorchsoft.com - v{self.version}") + + + # Add these lines to set up the window icon + icon_path = self.resource_path("assets/logo-circle-32.png") + self.iconphoto(False, tk.PhotoImage(file=icon_path)) + + # For Windows compatibility, also set the iconbitmap + try: + self.iconbitmap(self.resource_path("assets/icon.ico")) + except: + # This might fail on Mac, which is fine as we have iconphoto as backup + pass # Fixed window dimensions for all states - DEFINED ONCE as class constants # These are the ONLY values that should be used throughout the application @@ -144,7 +157,7 @@ class TextToMic(tk.Tk): instruction_window.title("App Version") instruction_window.geometry("300x150") # Width x Height - instructions = """Version 1.3.5\n\n App by Scorchsoft.com""" + instructions = f"""Version {self.version}\n\n App by Scorchsoft.com""" tk.Label(instruction_window, text=instructions, justify=tk.LEFT, wraplength=280).pack(padx=10, pady=10)