summaryrefslogtreecommitdiff
path: root/modules/utilities/Background.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-18 15:19:15 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-18 15:19:15 +1000
commit85d575f6c18017693cb2f3ab07314a0cf43adbe6 (patch)
tree89540859a71162c28c8419af49c75cc3634e6b70 /modules/utilities/Background.qml
parentlauncher: fix open anim (diff)
downloadcaelestia-shell-85d575f6c18017693cb2f3ab07314a0cf43adbe6.tar.gz
caelestia-shell-85d575f6c18017693cb2f3ab07314a0cf43adbe6.tar.bz2
caelestia-shell-85d575f6c18017693cb2f3ab07314a0cf43adbe6.zip
feat: add sidebar
WIP
Diffstat (limited to 'modules/utilities/Background.qml')
-rw-r--r--modules/utilities/Background.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/utilities/Background.qml b/modules/utilities/Background.qml
index 5dc2c13..fbce896 100644
--- a/modules/utilities/Background.qml
+++ b/modules/utilities/Background.qml
@@ -8,6 +8,7 @@ ShapePath {
id: root
required property Wrapper wrapper
+ required property var sidebar
readonly property real rounding: Config.border.rounding
readonly property bool flatten: wrapper.height < rounding * 2
readonly property real roundingY: flatten ? wrapper.height / 2 : rounding
@@ -31,13 +32,13 @@ ShapePath {
relativeY: -(root.wrapper.height - root.roundingY * 2)
}
PathArc {
- relativeX: root.rounding
+ relativeX: root.sidebar.utilsRoundingX
relativeY: -root.roundingY
- radiusX: root.rounding
+ radiusX: root.sidebar.utilsRoundingX
radiusY: Math.min(root.rounding, root.wrapper.height)
}
PathLine {
- relativeX: root.wrapper.height > 0 ? root.wrapper.width - root.rounding * 2 : root.wrapper.width
+ relativeX: root.wrapper.height > 0 ? root.wrapper.width - root.rounding - root.sidebar.utilsRoundingX : root.wrapper.width
relativeY: 0
}
PathArc {