feat(quickshell): add ScreenCorners widget modified from end-4
This commit is contained in:
parent
f44002d86d
commit
d5af1a5d74
1 changed files with 49 additions and 0 deletions
|
@ -0,0 +1,49 @@
|
||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Wayland
|
||||||
|
|
||||||
|
import "../../Components/RoundCorner"
|
||||||
|
|
||||||
|
Scope {
|
||||||
|
id: screenCorners
|
||||||
|
|
||||||
|
readonly property Toplevel activeWindow: ToplevelManager.activeToplevel
|
||||||
|
|
||||||
|
Variants {
|
||||||
|
model: Quickshell.screens
|
||||||
|
|
||||||
|
PanelWindow {
|
||||||
|
property var modelData
|
||||||
|
|
||||||
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
|
WlrLayershell.namespace: "quickshell:screenCorners"
|
||||||
|
color: "transparent"
|
||||||
|
exclusionMode: ExclusionMode.Normal
|
||||||
|
margins.bottom: -1
|
||||||
|
screen: modelData
|
||||||
|
|
||||||
|
mask: Region {
|
||||||
|
item: null
|
||||||
|
}
|
||||||
|
|
||||||
|
anchors {
|
||||||
|
bottom: true
|
||||||
|
left: true
|
||||||
|
right: true
|
||||||
|
}
|
||||||
|
|
||||||
|
RoundCorner {
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
corner: RoundCorner.Corner.BottomLeft
|
||||||
|
}
|
||||||
|
|
||||||
|
RoundCorner {
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: parent.right
|
||||||
|
corner: RoundCorner.Corner.BottomRight
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue