quickshell: keep dropdown open while hovering bar
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c6dc2632c3
commit
526f673f7d
1 changed files with 13 additions and 0 deletions
|
|
@ -575,6 +575,15 @@ in
|
|||
color: Theme.barBg
|
||||
|
||||
property var activeDropdown: null
|
||||
|
||||
HoverHandler {
|
||||
onHoveredChanged: {
|
||||
if (hovered && bar.activeDropdown) {
|
||||
bar.activeDropdown.resetAutoClose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function closeAllDropdowns() {
|
||||
if (activeDropdown && activeDropdown.visible) {
|
||||
activeDropdown.animateClose();
|
||||
|
|
@ -1029,6 +1038,10 @@ in
|
|||
_closeDelay.start();
|
||||
}
|
||||
|
||||
function resetAutoClose() {
|
||||
if (visible && !closing) _autoClose.restart();
|
||||
}
|
||||
|
||||
anchor.window: bar
|
||||
anchor.rect.x: dropdownX - (fullWidth + 16) / 2
|
||||
anchor.rect.y: bar.height
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue