diff --git a/.agents/CLIPHOARD_HARDENING_CHECKLIST.md b/.agents/CLIPHOARD_HARDENING_CHECKLIST.md index 19fbe31..9ef1516 100644 --- a/.agents/CLIPHOARD_HARDENING_CHECKLIST.md +++ b/.agents/CLIPHOARD_HARDENING_CHECKLIST.md @@ -88,7 +88,7 @@ Each bounded iteration must: GTK/X11/package build, 2026-09-12). - [ ] Verify tray activation/menu behavior and graceful tray unavailability. - [x] Make the global shortcut and second-instance show request toggle the popup reliably without a delayed focus result reopening it (28 X11-feature tests and Docker GTK/X11/package build, 2026-09-12); live GUI acceptance remains pending. -- [x] Use a standard theme icon for the live tray service so development runs do not depend on the custom icon being installed (Docker GTK/X11/package build, 2026-09-12); live tray acceptance remains pending. +- [x] Use a standard theme icon for the live tray service and expose a standard pause overlay while recording is paused (Docker GTK/X11/package build, 2026-09-12); live tray acceptance remains pending. - [x] Keep cloned tray handles from shutting down the shared D-Bus service prematurely by making shutdown ownership reference-counted (D-Bus audit found the previous service disappeared after GTK activation; 28 tests and Docker GTK/X11/package build, 2026-09-12); live tray acceptance remains pending. - [x] Make `--diagnostics` inspect the running installation without triggering a show request, and report the log directory plus instance state (20 tests and diff --git a/src/tray.rs b/src/tray.rs index dffff2f..427d5d4 100644 --- a/src/tray.rs +++ b/src/tray.rs @@ -43,6 +43,14 @@ impl ksni::Tray for CliphoardTray { "edit-paste".into() } + fn overlay_icon_name(&self) -> String { + if self.recording.load(Ordering::Acquire) { + String::new() + } else { + "media-playback-pause".into() + } + } + fn activate(&mut self, _x: i32, _y: i32) { if let Err(error) = InstanceGuard::signal_show() { tracing::error!(%error, "failed to show popup from tray icon");