From 159f7a4a05a75c6ccbb2895c1825026084da2182 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Mon, 16 Feb 2026 00:38:13 +0000 Subject: [PATCH] feat: Change Ctrl+Shift+U to toggle in-game overlay (Activity Bar) Hotkey Changes: - Ctrl+Shift+U: Now toggles Activity Bar (in-game overlay) instead of dashboard - Ctrl+Shift+H: Still hides all overlays - Ctrl+Shift+B: Also toggles Activity Bar (kept for compatibility) UI Updates: - Tray menu shows 'Activity Bar (Ctrl+Shift+U)' to indicate hotkey - Dashboard no longer has a global hotkey (use tray icon or window) - Updated startup messages to reflect new hotkey setup --- core/main.py | 24 +++++++++++++----------- core/tray_icon.py | 4 ++-- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/core/main.py b/core/main.py index e98edad..a35f666 100644 --- a/core/main.py +++ b/core/main.py @@ -230,24 +230,26 @@ class EUUtilityApp: print("EU-Utility started!") print("Dashboard window is open (Desktop App)") - print("Press Ctrl+Shift+U to toggle dashboard") + print("Use system tray icon to access dashboard") + print("Press Ctrl+Shift+U to toggle in-game overlay (Activity Bar)") print("Press Ctrl+Shift+H to hide all overlays") - print("Press Ctrl+Shift+B to toggle activity bar overlay") print(f"Loaded {len(self.plugin_manager.get_all_plugins())} plugins") # Show overlay mode info if hasattr(self, 'overlay_controller') and self.overlay_controller: mode = self.overlay_controller._mode print(f"\nActivity Bar Mode: {mode.value}") - if mode.value == 'overlay_toggle': - print(" - Overlay starts hidden") - print(" - Press Ctrl+Shift+B to toggle visibility") - elif mode.value == 'overlay_temp': - print(" - Press Ctrl+Shift+B to show for 8 seconds") - elif mode.value == 'overlay_game': + if mode.value == 'overlay_game': print(" - Overlay auto-shows when EU game is focused") + print(" - Press Ctrl+Shift+U to manually toggle overlay") elif mode.value == 'overlay_always': print(" - Overlay always visible") + print(" - Press Ctrl+Shift+U to hide/show overlay") + elif mode.value == 'overlay_toggle': + print(" - Overlay starts hidden") + print(" - Press Ctrl+Shift+U to toggle overlay") + elif mode.value == 'overlay_temp': + print(" - Press Ctrl+Shift+U to show for 8 seconds") elif mode.value == 'desktop_app': print(" - Activity bar only in desktop app") @@ -395,11 +397,11 @@ class EUUtilityApp: """Setup global hotkeys.""" if KEYBOARD_AVAILABLE: try: - # Toggle main overlay - keyboard.add_hotkey('ctrl+shift+u', self._on_hotkey_pressed) + # Ctrl+Shift+U: Toggle in-game overlay (Activity Bar) + keyboard.add_hotkey('ctrl+shift+u', self._on_activity_bar_hotkey) # Hide all overlays keyboard.add_hotkey('ctrl+shift+h', self._on_hide_overlays_pressed) - # Toggle activity bar + # Alternative: Toggle activity bar (kept for compatibility) keyboard.add_hotkey('ctrl+shift+b', self._on_activity_bar_hotkey) except Exception as e: print(f"Failed to register hotkey: {e}") diff --git a/core/tray_icon.py b/core/tray_icon.py index ad8c66e..d180e13 100644 --- a/core/tray_icon.py +++ b/core/tray_icon.py @@ -89,12 +89,12 @@ class TrayIcon(QWidget): # Simple actions (no emojis to avoid encoding issues) debug_logger.debug("TRAY", "Creating Dashboard action...") - self.dashboard_action = QAction("Dashboard", self) + self.dashboard_action = QAction("Dashboard (Click to Open)", self) self.dashboard_action.triggered.connect(self._on_dashboard_clicked) self.menu.addAction(self.dashboard_action) debug_logger.debug("TRAY", "Creating Activity Bar action...") - self.activity_bar_action = QAction("Activity Bar", self) + self.activity_bar_action = QAction("Activity Bar (Ctrl+Shift+U)", self) self.activity_bar_action.setCheckable(True) self.activity_bar_action.triggered.connect(self._on_activity_bar_clicked) self.menu.addAction(self.activity_bar_action)