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:
parent
05ada14442
commit
656a1fa4ed
1 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue