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 {
|
Row {
|
||||||
id: trayArea
|
id: trayArea
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
height: 30
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
|
HoverHandler {
|
||||||
|
onHoveredChanged: {
|
||||||
|
if (hovered && bar.activeDropdown) bar.activeDropdown.resetAutoClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: SystemTray.items
|
model: SystemTray.items
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
width: 16
|
width: 24
|
||||||
height: 16
|
height: 30
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: trayIcon
|
id: trayIcon
|
||||||
anchors.fill: parent
|
anchors.centerIn: parent
|
||||||
|
width: 16
|
||||||
|
height: 16
|
||||||
source: modelData.icon
|
source: modelData.icon
|
||||||
sourceSize.width: 16
|
sourceSize.width: 16
|
||||||
sourceSize.height: 16
|
sourceSize.height: 16
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue