import "root:/config" import QtQuick import QtQuick.Shapes Shape { id: root required property real wrapperWidth required property real realWrapperHeight readonly property int rounding: Appearance.rounding.large readonly property int roundingY: Math.min(rounding, realWrapperHeight / 2) readonly property real wrapperHeight: realWrapperHeight - 1 // Pixel issues :sob: anchors.bottom: parent.bottom preferredRendererType: Shape.CurveRenderer opacity: Appearance.transparency.enabled ? Appearance.transparency.base : 1 ShapePath { strokeWidth: -1 fillColor: Appearance.colours.m3surfaceContainer startY: root.wrapperHeight PathArc { relativeX: root.rounding relativeY: -root.roundingY radiusX: root.rounding radiusY: root.roundingY direction: PathArc.Counterclockwise } PathLine { relativeX: 0 y: root.roundingY } PathArc { relativeX: root.rounding relativeY: -root.roundingY radiusX: root.rounding radiusY: root.roundingY } PathLine { x: root.wrapperWidth - root.rounding * 2 } PathArc { relativeX: root.rounding relativeY: root.roundingY radiusX: root.rounding radiusY: root.roundingY } PathLine { relativeX: 0 y: root.wrapperHeight - root.roundingY } PathArc { relativeX: root.rounding relativeY: root.roundingY radiusX: root.rounding radiusY: root.roundingY direction: PathArc.Counterclockwise } } }