qs: use Hyprland.visibleMask in notifs and tooltip
This commit is contained in:
parent
bfe0689d2e
commit
324d1aad9d
modules/user/modules/quickshell/shell
|
@ -87,6 +87,19 @@ Scope {
|
||||||
|
|
||||||
HyprlandWindow.opacity: root.scaleMul
|
HyprlandWindow.opacity: root.scaleMul
|
||||||
|
|
||||||
|
HyprlandWindow.visibleMask: Region {
|
||||||
|
id: visibleMask
|
||||||
|
item: tooltipItem
|
||||||
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: root
|
||||||
|
|
||||||
|
function onScaleMulChanged() {
|
||||||
|
visibleMask.changed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//height: bar.height
|
//height: bar.height
|
||||||
width: Math.max(700, tooltipItem.largestAnimWidth) // max due to qtwayland glitches
|
width: Math.max(700, tooltipItem.largestAnimWidth) // max due to qtwayland glitches
|
||||||
height: {
|
height: {
|
||||||
|
@ -96,7 +109,7 @@ Scope {
|
||||||
}
|
}
|
||||||
visible: true
|
visible: true
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
//color: "#20000000"
|
//color: "#20ff0000"
|
||||||
|
|
||||||
mask: Region {
|
mask: Region {
|
||||||
item: (shownItem?.hoverable ?? false) ? tooltipItem : null
|
item: (shownItem?.hoverable ?? false) ? tooltipItem : null
|
||||||
|
|
|
@ -2,7 +2,7 @@ import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import Quickshell.Services.Greetd
|
import Quickshell.Services.Greetd
|
||||||
import ".."
|
import "background"
|
||||||
import "lock"
|
import "lock"
|
||||||
|
|
||||||
ShellRoot {
|
ShellRoot {
|
||||||
|
|
|
@ -5,6 +5,8 @@ import "../components"
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
readonly property Region mask: Region { item: displayContainer }
|
||||||
|
|
||||||
enum FlingState {
|
enum FlingState {
|
||||||
Inert,
|
Inert,
|
||||||
Returning,
|
Returning,
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
WlrLayershell.namespace: "shell:notifications"
|
WlrLayershell.namespace: "shell:notifications"
|
||||||
exclusionMode: ExclusionMode.Ignore
|
exclusionMode: ExclusionMode.Ignore
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
//color: "#30606000"
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: true
|
left: true
|
||||||
|
@ -28,6 +30,9 @@ PanelWindow {
|
||||||
visible: display.stack.children.length != 0
|
visible: display.stack.children.length != 0
|
||||||
|
|
||||||
mask: Region { item: display.stack }
|
mask: Region { item: display.stack }
|
||||||
|
HyprlandWindow.visibleMask: Region {
|
||||||
|
regions: display.stack.children.map(child => child.mask)
|
||||||
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
NotificationManager.overlay = this;
|
NotificationManager.overlay = this;
|
||||||
|
|
Loading…
Reference in a new issue