cleanup most numerical radius values

This commit is contained in:
2026-04-02 23:22:50 +02:00
parent 138d80ef00
commit 61c3fe20d5
40 changed files with 77 additions and 82 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 15
color: root.nonPeakColor
implicitWidth: root.handle.x - root.implicitHeight
radius: 1000
radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 15
CustomRect {
@@ -29,7 +29,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 15
color: root.peakColor
implicitWidth: parent.width * root.peak
radius: 1000
radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 15
Behavior on implicitWidth {
@@ -49,7 +49,7 @@ Slider {
bottomLeftRadius: root.implicitHeight / 15
color: DynamicColors.tPalette.m3surfaceContainer
implicitWidth: root.implicitWidth - root.handle.x - root.handle.implicitWidth - root.implicitHeight
radius: 1000
radius: Appearance.rounding.full
topLeftRadius: root.implicitHeight / 15
}
}
@@ -58,7 +58,7 @@ Slider {
color: DynamicColors.palette.m3primary
implicitHeight: 15
implicitWidth: 5
radius: 1000
radius: Appearance.rounding.full
x: root.visualPosition * root.availableWidth - implicitWidth / 2
MouseArea {
+1 -1
View File
@@ -6,7 +6,7 @@ Button {
id: control
property color bgColor: DynamicColors.palette.m3primary
property int radius: 4
property int radius: Appearance.rounding.smallest / 2
property color textColor: DynamicColors.palette.m3onPrimary
background: CustomRect {
+1 -1
View File
@@ -22,7 +22,7 @@ CheckBox {
color: DynamicColors.palette.m3surfaceVariant
implicitHeight: control.checkHeight
implicitWidth: control.checkWidth
radius: 4
radius: Appearance.rounding.smallest / 2
CustomRect {
color: DynamicColors.palette.m3primary
+2 -2
View File
@@ -25,7 +25,7 @@ RadioButton {
color: "transparent"
implicitHeight: 16
implicitWidth: 16
radius: 1000
radius: Appearance.rounding.full
Behavior on border.color {
CAnim {
@@ -47,7 +47,7 @@ RadioButton {
color: Qt.alpha(DynamicColors.palette.m3primary, root.checked ? 1 : 0)
implicitHeight: 8
implicitWidth: 8
radius: 1000
radius: Appearance.rounding.full
}
}
}
+1 -1
View File
@@ -29,7 +29,7 @@ ScrollBar {
return 0.6;
return 0;
}
radius: 1000
radius: Appearance.rounding.full
Behavior on opacity {
Anim {
+3 -3
View File
@@ -13,7 +13,7 @@ Slider {
bottomRightRadius: root.implicitHeight / 6
color: DynamicColors.palette.m3primary
implicitWidth: root.handle.x - root.implicitHeight / 2
radius: 1000
radius: Appearance.rounding.full
topRightRadius: root.implicitHeight / 6
}
@@ -24,7 +24,7 @@ Slider {
bottomLeftRadius: root.implicitHeight / 6
color: DynamicColors.tPalette.m3surfaceContainer
implicitWidth: parent.width - root.handle.x - root.handle.implicitWidth - root.implicitHeight / 2
radius: 1000
radius: Appearance.rounding.full
topLeftRadius: root.implicitHeight / 6
}
}
@@ -33,7 +33,7 @@ Slider {
color: DynamicColors.palette.m3primary
implicitHeight: 15
implicitWidth: 5
radius: 1000
radius: Appearance.rounding.full
x: root.visualPosition * root.availableWidth - implicitWidth / 2
MouseArea {
+2 -2
View File
@@ -15,7 +15,7 @@ Switch {
color: root.checked ? DynamicColors.palette.m3primary : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHighest, root.cLayer)
implicitHeight: 13 + 7 * 2
implicitWidth: implicitHeight * 1.7
radius: 1000
radius: Appearance.rounding.full
CustomRect {
readonly property real nonAnimWidth: root.pressed ? implicitHeight * 1.3 : implicitHeight
@@ -24,7 +24,7 @@ Switch {
color: root.checked ? DynamicColors.palette.m3onPrimary : DynamicColors.layer(DynamicColors.palette.m3outline, root.cLayer + 1)
implicitHeight: parent.implicitHeight - 10
implicitWidth: nonAnimWidth
radius: 1000
radius: Appearance.rounding.full
x: root.checked ? parent.implicitWidth - nonAnimWidth - 10 / 2 : 10 / 2
Behavior on implicitWidth {
+1 -1
View File
@@ -22,7 +22,7 @@ Item {
implicitHeight: shown ? (tooltipTextObject.implicitHeight + 2 * root.verticalPadding) : 0
implicitWidth: shown ? (tooltipTextObject.implicitWidth + 2 * root.horizontalPadding) : 0
opacity: shown ? 1 : 0
radius: 8
radius: Appearance.rounding.smallest
Behavior on implicitHeight {
Anim {
+1 -1
View File
@@ -10,7 +10,7 @@ CustomRect {
implicitHeight: count.implicitHeight + 4 * 2
implicitWidth: count.implicitWidth + 8 * 2
opacity: extra > 0 ? 1 : 0
radius: 8
radius: Appearance.rounding.smallest
scale: extra > 0 ? 1 : 0.5
Behavior on opacity {
+1 -1
View File
@@ -85,7 +85,7 @@ MouseArea {
border.pixelAligned: false
color: root.color
opacity: 0
radius: 1000
radius: Appearance.rounding.full
transform: Translate {
x: -ripple.width / 2