From 0505622c6c3142180f6f8fad2b3ea450e5a92bdb Mon Sep 17 00:00:00 2001 From: Andrew Ward Date: Thu, 2 May 2024 09:43:00 +0100 Subject: [PATCH] add aqua theme for Mac --- text-to-mic.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/text-to-mic.py b/text-to-mic.py index ca4ea12..a57d4ec 100644 --- a/text-to-mic.py +++ b/text-to-mic.py @@ -18,7 +18,12 @@ class Application(tk.Tk): super().__init__() self.title("Scorchsoft Text to Mic") self.style = ttk.Style(self) - self.style.theme_use('clam') # Using a theme for a better look + + + if self.tk.call('tk', 'windowingsystem') == 'aqua': + self.style.theme_use('aqua') + else: + self.style.theme_use('clam') # Fallback to 'clam' on non-macOS systems # Ensure API Key is loaded or prompted for before initializing GUI components self.api_key = self.get_api_key()