mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49: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
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import Quickshell
|
import Quickshell
|
||||||
// import "power"
|
import "power"
|
||||||
// import "volume"
|
// import "volume"
|
||||||
import "systray"
|
import "systray"
|
||||||
// import qs.widgets
|
// import qs.widgets
|
||||||
|
|
@ -55,6 +55,11 @@ Variants {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PowerMenu {
|
||||||
|
// bar: root
|
||||||
|
// Layout.fillHeight: true
|
||||||
|
// }
|
||||||
|
|
||||||
// Right side of bar
|
// Right side of bar
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
|
||||||
|
|
@ -89,22 +89,21 @@ Scope {
|
||||||
active: true
|
active: true
|
||||||
windows: [popup, root.bar]
|
windows: [popup, root.bar]
|
||||||
onCleared: {
|
onCleared: {
|
||||||
root.shownItem.closed();
|
if (!active) {
|
||||||
|
root.shownItem.closed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// HyprlandWindow.opacity: root.scaleMul
|
// HyprlandWindow.opacity: root.scaleMul
|
||||||
|
|
||||||
HyprlandWindow.visibleMask: Region {
|
HyprlandWindow.visibleMask: popup.mask
|
||||||
id: mask
|
|
||||||
item: parentItem
|
|
||||||
}
|
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root
|
target: root
|
||||||
|
|
||||||
function onScaleMulChanged() {
|
function onScaleMulChanged() {
|
||||||
mask.changed();
|
popup.mask.changed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue