## New Features ### Minimize to Tray - Window minimizes to system tray instead of taskbar - Tray notification shown when minimized - Double-click tray icon to restore ### Settings System - New settings dialog (Edit > Settings or Ctrl+,) - JSON-based settings persistence - General tab: minimize to tray toggle - Relay Server tab: enable/configure relay connection ### Relay Server Support - New relay_client.py for connecting to relay server - WebSocket client with auto-reconnection - Forwards API requests to local server - Updates QR code/URL when relay connected ### PWA Updates - Added relay mode detection and authentication - Password passed via header for API requests - WebSocket authentication for relay connections - Desktop status handling (connected/disconnected) - Wake lock icon now always visible with status indicator ## Files Added - gui/settings_manager.py - gui/settings_dialog.py - relay_client.py ## Dependencies - Added aiohttp>=3.9.0 for relay client 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
474 B
Python
20 lines
474 B
Python
# Configuration and constants for MacroPad Server
|
|
|
|
VERSION = "0.9.5"
|
|
DEFAULT_PORT = 40000
|
|
SETTINGS_FILE = "settings.json"
|
|
|
|
# UI Theme colors
|
|
THEME = {
|
|
'bg_color': "#2e2e2e",
|
|
'fg_color': "#ffffff",
|
|
'highlight_color': "#3e3e3e",
|
|
'accent_color': "#007acc",
|
|
'button_bg': "#505050",
|
|
'button_fg': "#ffffff",
|
|
'tab_bg': "#404040",
|
|
'tab_selected': "#007acc"
|
|
}
|
|
|
|
# File extensions for images
|
|
IMAGE_EXTENSIONS = [".jpg", ".jpeg", ".png", ".gif", ".bmp"] |