diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-21 22:47:13 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-21 22:47:13 +1000 |
| commit | 4a86b66d06dda958f8d136234225ed160604a61a (patch) | |
| tree | 8dab0f695e035f26dccc2089ee4636c2b7b7ee2a /modules/bar/popouts/Background.qml | |
| parent | popouts: convert to layout (diff) | |
| download | caelestia-shell-4a86b66d06dda958f8d136234225ed160604a61a.tar.gz caelestia-shell-4a86b66d06dda958f8d136234225ed160604a61a.tar.bz2 caelestia-shell-4a86b66d06dda958f8d136234225ed160604a61a.zip | |
feat: window info panel
Also disable reload popup
Diffstat (limited to 'modules/bar/popouts/Background.qml')
| -rw-r--r-- | modules/bar/popouts/Background.qml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/modules/bar/popouts/Background.qml b/modules/bar/popouts/Background.qml index c099118..d626ec1 100644 --- a/modules/bar/popouts/Background.qml +++ b/modules/bar/popouts/Background.qml @@ -13,15 +13,17 @@ ShapePath { readonly property real roundingX: flatten ? wrapper.width / 2 : rounding property real ibr: invertBottomRounding ? -1 : 1 + property real sideRounding: startX > 0 ? -1 : 1 + strokeWidth: -1 fillColor: Config.border.colour PathArc { relativeX: root.roundingX - relativeY: root.rounding + relativeY: root.rounding * root.sideRounding radiusX: Math.min(root.rounding, root.wrapper.width) radiusY: root.rounding - direction: PathArc.Counterclockwise + direction: root.sideRounding < 0 ? PathArc.Clockwise : PathArc.Counterclockwise } PathLine { relativeX: root.wrapper.width - root.roundingX * 2 @@ -50,10 +52,10 @@ ShapePath { } PathArc { relativeX: -root.roundingX - relativeY: root.rounding + relativeY: root.rounding * root.sideRounding radiusX: Math.min(root.rounding, root.wrapper.width) radiusY: root.rounding - direction: PathArc.Counterclockwise + direction: root.sideRounding < 0 ? PathArc.Clockwise : PathArc.Counterclockwise } Behavior on fillColor { @@ -71,4 +73,12 @@ ShapePath { easing.bezierCurve: Appearance.anim.curves.standard } } + + Behavior on sideRounding { + NumberAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } } |