diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-26 19:41:56 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-26 19:41:56 +1000 |
| commit | be6b19ad21f13404fd70d2be6bf3ac16d786f3a8 (patch) | |
| tree | 51d78316ac4d6cb2129c8a56e034ce8962b63fb6 /widgets | |
| parent | [CI] chore: update flake (diff) | |
| download | caelestia-shell-be6b19ad21f13404fd70d2be6bf3ac16d786f3a8.tar.gz caelestia-shell-be6b19ad21f13404fd70d2be6bf3ac16d786f3a8.tar.bz2 caelestia-shell-be6b19ad21f13404fd70d2be6bf3ac16d786f3a8.zip | |
dcontent: add bt pane
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/InnerBorder.qml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/widgets/InnerBorder.qml b/widgets/InnerBorder.qml new file mode 100644 index 0000000..83d4e96 --- /dev/null +++ b/widgets/InnerBorder.qml @@ -0,0 +1,43 @@ +pragma ComponentBehavior: Bound + +import qs.services +import qs.config +import QtQuick +import QtQuick.Effects + +StyledRect { + property alias innerRadius: maskInner.radius + property alias thickness: maskInner.anchors.margins + property alias leftThickness: maskInner.anchors.leftMargin + property alias topThickness: maskInner.anchors.topMargin + property alias rightThickness: maskInner.anchors.rightMargin + property alias bottomThickness: maskInner.anchors.bottomMargin + + anchors.fill: parent + color: Colours.palette.m3surfaceContainer + + layer.enabled: true + layer.effect: MultiEffect { + maskSource: mask + maskEnabled: true + maskInverted: true + maskThresholdMin: 0.5 + maskSpreadAtMin: 1 + } + + Item { + id: mask + + anchors.fill: parent + layer.enabled: true + visible: false + + Rectangle { + id: maskInner + + anchors.fill: parent + anchors.margins: Appearance.padding.normal + radius: Appearance.rounding.small + } + } +} |