screen corners: not have a fullscreen layer

This commit is contained in:
end-4
2025-07-16 09:34:22 +07:00
parent 06ed6dd1e7
commit a08e9e0e79
@@ -11,17 +11,11 @@ Scope {
id: screenCorners id: screenCorners
readonly property Toplevel activeWindow: ToplevelManager.activeToplevel readonly property Toplevel activeWindow: ToplevelManager.activeToplevel
Variants { component CornerPanelWindow: PanelWindow {
model: Quickshell.screens id: cornerPanelWindow
visible: (Config.options.appearance.fakeScreenRounding === 1 || (Config.options.appearance.fakeScreenRounding === 2 && !activeWindow?.fullscreen))
property var corner
PanelWindow {
visible: (Config.options.appearance.fakeScreenRounding === 1
|| (Config.options.appearance.fakeScreenRounding === 2
&& !activeWindow?.fullscreen))
property var modelData
screen: modelData
exclusionMode: ExclusionMode.Ignore exclusionMode: ExclusionMode.Ignore
mask: Region { mask: Region {
item: null item: null
@@ -31,43 +25,42 @@ Scope {
color: "transparent" color: "transparent"
anchors { anchors {
top: true top: cornerPanelWindow.corner === RoundCorner.CornerEnum.TopLeft || cornerPanelWindow.corner === RoundCorner.CornerEnum.TopRight
left: true left: cornerPanelWindow.corner === RoundCorner.CornerEnum.TopLeft || cornerPanelWindow.corner === RoundCorner.CornerEnum.BottomLeft
right: true bottom: cornerPanelWindow.corner === RoundCorner.CornerEnum.BottomLeft || cornerPanelWindow.corner === RoundCorner.CornerEnum.BottomRight
bottom: true right: cornerPanelWindow.corner === RoundCorner.CornerEnum.TopRight || cornerPanelWindow.corner === RoundCorner.CornerEnum.BottomRight
} }
implicitWidth: cornerWidget.implicitWidth
implicitHeight: cornerWidget.implicitHeight
RoundCorner { RoundCorner {
id: topLeftCorner id: cornerWidget
anchors.top: parent.top
anchors.left: parent.left
size: Appearance.rounding.screenRounding size: Appearance.rounding.screenRounding
corner: cornerPanelWindow.corner
}
}
Variants {
model: Quickshell.screens
Scope {
required property var modelData
CornerPanelWindow {
screen: modelData
corner: RoundCorner.CornerEnum.TopLeft corner: RoundCorner.CornerEnum.TopLeft
} }
RoundCorner { CornerPanelWindow {
id: topRightCorner screen: modelData
anchors.top: parent.top
anchors.right: parent.right
size: Appearance.rounding.screenRounding
corner: RoundCorner.CornerEnum.TopRight corner: RoundCorner.CornerEnum.TopRight
} }
RoundCorner { CornerPanelWindow {
id: bottomLeftCorner screen: modelData
anchors.bottom: parent.bottom
anchors.left: parent.left
size: Appearance.rounding.screenRounding
corner: RoundCorner.CornerEnum.BottomLeft corner: RoundCorner.CornerEnum.BottomLeft
} }
RoundCorner { CornerPanelWindow {
id: bottomRightCorner screen: modelData
anchors.bottom: parent.bottom
anchors.right: parent.right
size: Appearance.rounding.screenRounding
corner: RoundCorner.CornerEnum.BottomRight corner: RoundCorner.CornerEnum.BottomRight
} }
} }
} }
} }