Add user-configurable colors for transcription display
- Add color settings (user_color, text_color, background_color) to config - Add color picker buttons in Settings dialog with alpha support for backgrounds - Update local web display to use configurable colors - Send per-user colors with transcriptions to multi-user server - Update Node.js server to apply per-user colors on display page - Improve server landing page: replace tech details with display options reference - Bump version to 1.3.2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -373,6 +373,11 @@ class MainWindow(QMainWindow):
|
||||
websafe_font = self.config.get('display.websafe_font', 'Arial')
|
||||
google_font = self.config.get('display.google_font', 'Roboto')
|
||||
|
||||
# Color settings
|
||||
user_color = self.config.get('display.user_color', '#4CAF50')
|
||||
text_color = self.config.get('display.text_color', '#FFFFFF')
|
||||
background_color = self.config.get('display.background_color', '#000000B3')
|
||||
|
||||
# Try up to 5 ports if the default is in use
|
||||
ports_to_try = [port] + [port + i for i in range(1, 5)]
|
||||
server_started = False
|
||||
@@ -390,7 +395,10 @@ class MainWindow(QMainWindow):
|
||||
fonts_dir=fonts_dir,
|
||||
font_source=font_source,
|
||||
websafe_font=websafe_font,
|
||||
google_font=google_font
|
||||
google_font=google_font,
|
||||
user_color=user_color,
|
||||
text_color=text_color,
|
||||
background_color=background_color
|
||||
)
|
||||
self.web_server_thread = WebServerThread(self.web_server)
|
||||
self.web_server_thread.start()
|
||||
@@ -643,6 +651,10 @@ class MainWindow(QMainWindow):
|
||||
self.web_server.font_source = self.config.get('display.font_source', 'System Font')
|
||||
self.web_server.websafe_font = self.config.get('display.websafe_font', 'Arial')
|
||||
self.web_server.google_font = self.config.get('display.google_font', 'Roboto')
|
||||
# Update color settings
|
||||
self.web_server.user_color = self.config.get('display.user_color', '#4CAF50')
|
||||
self.web_server.text_color = self.config.get('display.text_color', '#FFFFFF')
|
||||
self.web_server.background_color = self.config.get('display.background_color', '#000000B3')
|
||||
|
||||
# Update sync link visibility based on server sync settings
|
||||
self._update_sync_link()
|
||||
@@ -728,6 +740,11 @@ class MainWindow(QMainWindow):
|
||||
google_font = self.config.get('display.google_font', '')
|
||||
custom_font_file = self.config.get('display.custom_font_file', '')
|
||||
|
||||
# Color settings
|
||||
user_color = self.config.get('display.user_color', '#4CAF50')
|
||||
text_color = self.config.get('display.text_color', '#FFFFFF')
|
||||
background_color = self.config.get('display.background_color', '#000000B3')
|
||||
|
||||
if not url:
|
||||
print("Server sync enabled but no URL configured")
|
||||
return
|
||||
@@ -743,7 +760,10 @@ class MainWindow(QMainWindow):
|
||||
font_source=font_source,
|
||||
websafe_font=websafe_font if websafe_font else None,
|
||||
google_font=google_font if google_font else None,
|
||||
custom_font_file=custom_font_file if custom_font_file else None
|
||||
custom_font_file=custom_font_file if custom_font_file else None,
|
||||
user_color=user_color,
|
||||
text_color=text_color,
|
||||
background_color=background_color
|
||||
)
|
||||
self.server_sync_client.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user