qs: use Hyprland.visibleMask in notifs and tooltip
This commit is contained in:
parent
bfe0689d2e
commit
324d1aad9d
4 changed files with 22 additions and 2 deletions
|
|
@ -87,6 +87,19 @@ Scope {
|
|||
|
||||
HyprlandWindow.opacity: root.scaleMul
|
||||
|
||||
HyprlandWindow.visibleMask: Region {
|
||||
id: visibleMask
|
||||
item: tooltipItem
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: root
|
||||
|
||||
function onScaleMulChanged() {
|
||||
visibleMask.changed();
|
||||
}
|
||||
}
|
||||
|
||||
//height: bar.height
|
||||
width: Math.max(700, tooltipItem.largestAnimWidth) // max due to qtwayland glitches
|
||||
height: {
|
||||
|
|
@ -96,7 +109,7 @@ Scope {
|
|||
}
|
||||
visible: true
|
||||
color: "transparent"
|
||||
//color: "#20000000"
|
||||
//color: "#20ff0000"
|
||||
|
||||
mask: Region {
|
||||
item: (shownItem?.hoverable ?? false) ? tooltipItem : null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue