diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-07 18:57:23 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-07 18:57:23 +0200 |
| commit | b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a (patch) | |
| tree | 3038d7ed7f940b209b7e9db68393c6e229d925cd /desktop/island/StatusPill.qml | |
| parent | 744802e1ecb44ddb4714f8922b8ee0e9e5def811 (diff) | |
| download | quickshell-b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a.tar.gz quickshell-b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a.zip | |
fix(island): review findings in the pill components
- The flag switches once per wheel notch; a touchpad's stream of small
deltas switched an erratic number of times.
- The flick decides on resolved icon paths, so a name the icon theme lacks
falls back to the workspace number instead of a blank slot.
- Layout switching uses Hyprland's 'current' keyboard rather than looking
up the main device in a subshell.
- The capsule radius reaches half the rest height, a real capsule.
- privacy.sh exits non-zero when pw-dump fails, so Privacy keeps its last
reading instead of reporting nothing captured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/island/StatusPill.qml')
| -rw-r--r-- | desktop/island/StatusPill.qml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/desktop/island/StatusPill.qml b/desktop/island/StatusPill.qml index faf24dd..ab62da8 100644 --- a/desktop/island/StatusPill.qml +++ b/desktop/island/StatusPill.qml @@ -88,8 +88,16 @@ Capsule { sourceSize: Qt.size(18, 18) source: Qt.resolvedUrl("assets/" + Keyboard.flag) + // One switch per wheel notch (120). A touchpad sends many small + // deltas, and switching on each made the count erratic. WheelHandler { - onWheel: event => Keyboard.cycle(event.angleDelta.y > 0 ? "prev" : "next") + property real acc: 0 + onWheel: event => { + acc += event.angleDelta.y; + if (Math.abs(acc) < 120) return; + Keyboard.cycle(acc > 0 ? "prev" : "next"); + acc = 0; + } } } } |
