Skip to content

feat(gui): replace tray Show button with Settings and About entries#127

Merged
StudentWeis merged 2 commits into
mainfrom
feat/tray-settings-about
May 11, 2026
Merged

feat(gui): replace tray Show button with Settings and About entries#127
StudentWeis merged 2 commits into
mainfrom
feat/tray-settings-about

Conversation

@StudentWeis
Copy link
Copy Markdown
Owner

Summary

Replace the tray "Show" button with "Settings" and "About" entries that open the window directly to the corresponding panel, and fix the first-activation flash by deferring content rendering until the window is actually shown.

Linked Issue

Closes #126

Changes

  • Remove TrayEvent::Show and TRAY_SHOW_ID; add TrayEvent::Settings, TrayEvent::About, TRAY_SETTINGS_ID, TRAY_ABOUT_ID
  • Tray menu now shows Settings, About, Quit
  • Left-clicking tray icon opens Settings panel directly
  • Add send_open_settings / send_open_about functions that activate the window and navigate to the target panel
  • Add activated flag to RopyBoard; render empty background when !activated to prevent first-frame flash
  • Update all locale files (en, zh-CN, ja) with new tray keys
  • Update i18n tests to reference new keys

Testing

  • scripts/precheck.sh passes locally
  • New / updated tests cover the change (11 tray tests pass, 2 i18n tests updated)

Self-Check

  • PR title follows Conventional Commits
  • No hardcoded user-facing strings — i18n keys added to all locale files
  • Errors defined with thiserror (no manual impl Display/Error)
  • No unrelated changes mixed in

Remove the "Show" menu item from the system tray and add "Settings" and
"About" entries that open the window directly to the corresponding panel.
Left-clicking the tray icon now opens Settings. Add an `activated` flag
so the hidden window renders only background until first activation,
preventing a flash of the clipboard list.

Refs #126
@StudentWeis StudentWeis merged commit e420dd4 into main May 11, 2026
8 checks passed
@StudentWeis StudentWeis deleted the feat/tray-settings-about branch May 11, 2026 14:38
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.

feat: replace tray Show button with Settings and About entries

1 participant