diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 10:19:46 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 10:19:46 +1000 |
| commit | c665c0ca98d72c172893e8bbd9c893aaa2b9f46e (patch) | |
| tree | 160713bc48b5332c0534d0d235ef7f100344eb58 /modules/background/Border.qml | |
| parent | bar: add scroll actions to fillers (diff) | |
| download | caelestia-shell-c665c0ca98d72c172893e8bbd9c893aaa2b9f46e.tar.gz caelestia-shell-c665c0ca98d72c172893e8bbd9c893aaa2b9f46e.tar.bz2 caelestia-shell-c665c0ca98d72c172893e8bbd9c893aaa2b9f46e.zip | |
feat: border + colour changes
Diffstat (limited to 'modules/background/Border.qml')
| -rw-r--r-- | modules/background/Border.qml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/modules/background/Border.qml b/modules/background/Border.qml new file mode 100644 index 0000000..752a814 --- /dev/null +++ b/modules/background/Border.qml @@ -0,0 +1,57 @@ +import "root:/widgets" +import "root:/config" +import Quickshell +import QtQuick +import QtQuick.Effects + +StyledWindow { + id: win + + name: "border" + exclusionMode: ExclusionMode.Ignore + + mask: Region { + x: BackgroundConfig.border.thickness + y: BackgroundConfig.border.thickness + width: win.screen.width - BackgroundConfig.border.thickness * 2 + height: win.screen.height - BackgroundConfig.border.thickness * 2 + intersection: Intersection.Xor + } + + anchors.top: true + anchors.bottom: true + anchors.left: true + anchors.right: true + + StyledRect { + id: rect + + anchors.fill: parent + color: Appearance.alpha(Appearance.colours.m3surface, false) + visible: false + } + + Item { + id: mask + + anchors.fill: parent + layer.enabled: true + visible: false + + Rectangle { + anchors.fill: parent + anchors.margins: BackgroundConfig.border.thickness + radius: BackgroundConfig.border.rounding + } + } + + MultiEffect { + anchors.fill: parent + maskEnabled: true + maskInverted: true + maskSource: mask + source: rect + maskThresholdMin: 0.5 + maskSpreadAtMin: 1 + } +} |