mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
fix: mask issues on popups
This commit is contained in:
parent
ec04d07e24
commit
944e930537
2 changed files with 11 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
// import "power"
|
||||
import "power"
|
||||
// import "volume"
|
||||
import "systray"
|
||||
// import qs.widgets
|
||||
|
|
@ -55,6 +55,11 @@ Variants {
|
|||
}
|
||||
}
|
||||
|
||||
// PowerMenu {
|
||||
// bar: root
|
||||
// Layout.fillHeight: true
|
||||
// }
|
||||
|
||||
// Right side of bar
|
||||
RowLayout {
|
||||
spacing: 10
|
||||
|
|
|
|||
|
|
@ -89,22 +89,21 @@ Scope {
|
|||
active: true
|
||||
windows: [popup, root.bar]
|
||||
onCleared: {
|
||||
root.shownItem.closed();
|
||||
if (!active) {
|
||||
root.shownItem.closed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// HyprlandWindow.opacity: root.scaleMul
|
||||
|
||||
HyprlandWindow.visibleMask: Region {
|
||||
id: mask
|
||||
item: parentItem
|
||||
}
|
||||
HyprlandWindow.visibleMask: popup.mask
|
||||
|
||||
Connections {
|
||||
target: root
|
||||
|
||||
function onScaleMulChanged() {
|
||||
mask.changed();
|
||||
popup.mask.changed();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue