formatter

This commit is contained in:
Zacharias-Brohn
2026-02-24 23:20:11 +01:00
parent 40cd984b6d
commit d56a0260fb
202 changed files with 15037 additions and 15352 deletions
+25 -25
View File
@@ -2,24 +2,28 @@ import QtQuick
import QtQuick.Shapes
import qs.Components
import qs.Config
import qs.Helpers
ShapePath {
id: root
required property Wrapper wrapper
readonly property real rounding: 8
readonly property bool flatten: wrapper.height < rounding * 2
readonly property real roundingY: flatten ? wrapper.height / 2 : rounding
strokeWidth: -1
readonly property bool flatten: wrapper.height < rounding * 2
readonly property real rounding: 8
readonly property real roundingY: flatten ? wrapper.height / 2 : rounding
required property Wrapper wrapper
fillColor: DynamicColors.palette.m3surface
strokeWidth: -1
Behavior on fillColor {
CAnim {
}
}
PathArc {
radiusX: root.rounding
radiusY: Math.min(root.roundingY, root.wrapper.height)
relativeX: root.rounding
relativeY: root.roundingY
radiusX: root.rounding
radiusY: Math.min( root.roundingY, root.wrapper.height )
}
PathLine {
@@ -28,11 +32,11 @@ ShapePath {
}
PathArc {
relativeX: root.rounding
relativeY: root.roundingY
radiusX: root.rounding
radiusY: Math.min( root.rounding, root.wrapper.height )
direction: PathArc.Counterclockwise
radiusX: root.rounding
radiusY: Math.min(root.rounding, root.wrapper.height)
relativeX: root.rounding
relativeY: root.roundingY
}
PathLine {
@@ -41,26 +45,22 @@ ShapePath {
}
PathArc {
relativeX: root.rounding
relativeY: - root.roundingY
radiusX: root.rounding
radiusY: Math.min( root.rounding, root.wrapper.height )
direction: PathArc.Counterclockwise
radiusX: root.rounding
radiusY: Math.min(root.rounding, root.wrapper.height)
relativeX: root.rounding
relativeY: -root.roundingY
}
PathLine {
relativeX: 0
relativeY: - ( root.wrapper.height - root.roundingY * 2 )
relativeY: -(root.wrapper.height - root.roundingY * 2)
}
PathArc {
relativeX: root.rounding
relativeY: - root.roundingY
radiusX: root.rounding
radiusY: Math.min( root.rounding, root.wrapper.height )
}
Behavior on fillColor {
CAnim {}
radiusY: Math.min(root.rounding, root.wrapper.height)
relativeX: root.rounding
relativeY: -root.roundingY
}
}