diff options
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 + } + } } |