quickshell: fix tray hover gaps closing dropdown

Enlarge tray icon hit areas and add HoverHandler on tray row
to keep dropdown alive while moving between icons.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-26 21:13:28 +01:00
parent 05ada14442
commit 656a1fa4ed

View file

@ -963,19 +963,28 @@ in
Row {
id: trayArea
spacing: 8
height: 30
anchors.verticalCenter: parent.verticalCenter
HoverHandler {
onHoveredChanged: {
if (hovered && bar.activeDropdown) bar.activeDropdown.resetAutoClose();
}
}
Repeater {
model: SystemTray.items
Item {
required property var modelData
width: 16
height: 16
width: 24
height: 30
Image {
id: trayIcon
anchors.fill: parent
anchors.centerIn: parent
width: 16
height: 16
source: modelData.icon
sourceSize.width: 16
sourceSize.height: 16