lan-mouse/lan-mouse-gtk/resources
Jon Kinney 5d7d14fbf7 macos: fold relaunch prompt into the warning row instead of a toast
The cut-off toast UX ("Accessibility granted. Relaunch Lan Mouse so
capture and emulat…") was unreadable in a compact window and split
the "grant" and "relaunch" flows into two disconnected surfaces. Fold
everything into the existing warning row with state-dependent content:

- AX missing:
    title    = "input capture is disabled"
    subtitle = "grant Accessibility permission to enable"
    button   = "Grant"   → opens System Settings → Accessibility

- AX granted, daemon still bailed:
    title    = "relaunch required"
    subtitle = "Accessibility granted — restart to activate capture
                and emulation"
    button   = "Relaunch" → spawns a fresh bundle via `open` after
                            a 1s delay, then quits.

- Both active: row hidden.

The emulation_status_row is kept hidden on macOS because capture and
emulation share the same TCC gate — a single row is sufficient and
two identical-looking warnings were noisy. `handle_emulation` still
exists for the non-macOS platforms where the rows are distinct.

Side effects:
- `relaunch_bundle` moved from lib.rs to macos_privacy so imp.rs can
  call it from the row button handler.
- AX watcher callback shrinks to `window.present()` +
  `refresh_capture_emulation_status()`; the toast-based dialog is
  gone along with its helper.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 22:59:43 +02:00
..
icons/scalable bundle Adwaita symbolic icons in gresource 2026-04-29 22:59:43 +02:00
authorization_window.ui unauthorized device accept notification (#282) 2025-03-22 22:50:19 +01:00
client_row.ui Gtk frontend rework (#276) 2025-03-15 01:21:53 +01:00
de.feschber.LanMouse.svg extract frontend crate (#186) 2024-09-04 17:29:29 +02:00
fingerprint_window.ui Encryption and One-Way-Control (#200) 2024-11-09 13:54:43 +01:00
key_row.ui Encryption and One-Way-Control (#200) 2024-11-09 13:54:43 +01:00
resources.gresource.xml bundle Adwaita symbolic icons in gresource 2026-04-29 22:59:43 +02:00
window.ui macos: fold relaunch prompt into the warning row instead of a toast 2026-04-29 22:59:43 +02:00