fix screencorners not disappearing in fullscreen

This commit is contained in:
lucy 2026-05-26 12:54:42 +02:00
commit d174736bf6
2 changed files with 93 additions and 43 deletions

View file

@ -14,10 +14,12 @@ Item {
required property var modelData
screen: modelData
visible: Config.rounding > 0
exclusionMode: ExclusionMode.Ignore
layer: WlrLayer.Top
anchors { top: true; left: true }
margins.top: Config.barHeight
anchors {
top: true
left: true
}
// margins.top: Config.barHeight
implicitWidth: Config.rounding
implicitHeight: Config.rounding
color: "transparent"
@ -28,14 +30,23 @@ Item {
ShapePath {
fillColor: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, Config.opacity)
strokeWidth: -1
startX: 0; startY: 0
PathLine { x: tlWin.implicitWidth; y: 0 }
startX: 0
startY: 0
PathLine {
x: tlWin.implicitWidth
y: 0
}
PathArc {
x: 0; y: tlWin.implicitHeight
radiusX: tlWin.implicitWidth; radiusY: tlWin.implicitHeight
x: 0
y: tlWin.implicitHeight
radiusX: tlWin.implicitWidth
radiusY: tlWin.implicitHeight
direction: PathArc.Counterclockwise
}
PathLine { x: 0; y: 0 }
PathLine {
x: 0
y: 0
}
}
}
}
@ -51,7 +62,10 @@ Item {
visible: Config.rounding > 0
exclusionMode: ExclusionMode.Ignore
layer: WlrLayer.Overlay
anchors { top: true; right: true }
anchors {
top: true
right: true
}
margins.top: Config.barHeight
implicitWidth: Config.rounding
implicitHeight: Config.rounding
@ -63,15 +77,27 @@ Item {
ShapePath {
fillColor: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, Config.opacity)
strokeWidth: -1
startX: 0; startY: 0
PathLine { x: trWin.implicitWidth; y: 0 }
PathLine { x: trWin.implicitWidth; y: trWin.implicitHeight }
startX: 0
startY: 0
PathLine {
x: trWin.implicitWidth
y: 0
}
PathLine {
x: trWin.implicitWidth
y: trWin.implicitHeight
}
PathArc {
x: 0; y: 0
radiusX: trWin.implicitWidth; radiusY: trWin.implicitHeight
x: 0
y: 0
radiusX: trWin.implicitWidth
radiusY: trWin.implicitHeight
direction: PathArc.Counterclockwise
}
PathLine { x: 0; y: 0 }
PathLine {
x: 0
y: 0
}
}
}
}
@ -87,7 +113,10 @@ Item {
visible: Config.rounding > 0
exclusionMode: ExclusionMode.Ignore
layer: WlrLayer.Overlay
anchors { bottom: true; left: true }
anchors {
bottom: true
left: true
}
implicitWidth: Config.rounding
implicitHeight: Config.rounding
color: "transparent"
@ -98,14 +127,23 @@ Item {
ShapePath {
fillColor: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, Config.opacity)
strokeWidth: -1
startX: 0; startY: 0
startX: 0
startY: 0
PathArc {
x: blWin.implicitWidth; y: blWin.implicitHeight
radiusX: blWin.implicitWidth; radiusY: blWin.implicitHeight
x: blWin.implicitWidth
y: blWin.implicitHeight
radiusX: blWin.implicitWidth
radiusY: blWin.implicitHeight
direction: PathArc.Counterclockwise
}
PathLine { x: 0; y: blWin.implicitHeight }
PathLine { x: 0; y: 0 }
PathLine {
x: 0
y: blWin.implicitHeight
}
PathLine {
x: 0
y: 0
}
}
}
}
@ -121,7 +159,10 @@ Item {
visible: Config.rounding > 0
exclusionMode: ExclusionMode.Ignore
layer: WlrLayer.Overlay
anchors { bottom: true; right: true }
anchors {
bottom: true
right: true
}
implicitWidth: Config.rounding
implicitHeight: Config.rounding
color: "transparent"
@ -132,14 +173,23 @@ Item {
ShapePath {
fillColor: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, Config.opacity)
strokeWidth: -1
startX: brWin.implicitWidth; startY: brWin.implicitHeight
PathLine { x: 0; y: brWin.implicitHeight }
startX: brWin.implicitWidth
startY: brWin.implicitHeight
PathLine {
x: 0
y: brWin.implicitHeight
}
PathArc {
x: brWin.implicitWidth; y: 0
radiusX: brWin.implicitWidth; radiusY: brWin.implicitHeight
x: brWin.implicitWidth
y: 0
radiusX: brWin.implicitWidth
radiusY: brWin.implicitHeight
direction: PathArc.Counterclockwise
}
PathLine { x: brWin.implicitWidth; y: brWin.implicitHeight }
PathLine {
x: brWin.implicitWidth
y: brWin.implicitHeight
}
}
}
}