Skip to content

Conversation

@murdercode
Copy link
Owner

This pull request introduces a new "Status Bar Display" setting that allows users to customize how timer information is shown in the system status bar/tray, including an "icon-only" mode. The implementation includes backend support for status bar visibility management on macOS using Carbon APIs, frontend UI changes, settings migration logic, and updates to timer display behavior. The changes also improve settings management and user feedback.

Status Bar Display Feature

  • Added a new status_bar_display setting to AppSettings and the settings manager, with support for both "default" (timer text) and "icon-only" display modes. [1] [2] [3]
  • Migrated the legacy hide_status_bar setting to the new status_bar_display format for backward compatibility.
  • Updated the settings UI (index.html) to include a dropdown for selecting the status bar display mode, with corresponding styling in settings.css. [1] [2]
  • Implemented event handling and persistence for the new setting, including immediate application and user feedback notifications. [1] [2]

Timer Display Logic

  • Modified PomodoroTimer.updateTrayIcon() to respect the status_bar_display setting, showing either only the mode icon or the full timer/session text with proper padding. [1] [2]

macOS System Integration

  • Added backend command and logic for status bar visibility management using Carbon APIs, with robust error handling and fallback strategies. This is exposed as a new Tauri command and integrated into the app's run lifecycle. [1] [2]
  • Updated the default settings and command registration to support the new feature.

User Experience Improvements

  • When the app is reopened via the dock icon (macOS), the main window is shown and dock visibility is restored if previously hidden.

These changes collectively provide users with more control over how timer information is displayed and improve integration with macOS system UI.

@claude
Copy link

claude bot commented Aug 22, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@claude
Copy link

claude bot commented Aug 22, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@murdercode murdercode merged commit 33591b7 into main Aug 22, 2025
1 check failed
@murdercode murdercode deleted the hide-status-bar branch August 22, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants