Fix: Fix the vertical alignment of circles

This commit is contained in:
Corey Woodworth
2025-09-26 15:30:16 -04:00
parent 823ab9c6a3
commit aa1cea8d03
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -105,16 +105,16 @@ Slider {
}
handle: Item {
width: knob.implicitWidth
height: knob.implicitHeight
width: knobDiameter
height: knobDiameter
x: root.leftPadding + Math.round(root.visualPosition * (root.availableWidth - width))
y: root.topPadding + root.availableHeight / 2 - height / 2
y: root.topPadding + Math.round(root.availableHeight / 2 - height / 2)
Rectangle {
id: knob
implicitWidth: knobDiameter
implicitHeight: knobDiameter
radius: width * 0.5
radius: width / 2
color: root.pressed ? Color.mTertiary : Color.mSurface
border.color: Color.mPrimary
border.width: Math.max(1, Style.borderL * scaling)
+1 -1
View File
@@ -48,7 +48,7 @@ RowLayout {
Rectangle {
implicitWidth: Math.round((root.baseSize * 0.8) * scaling)
implicitHeight: Math.round((root.baseSize * 0.8) * scaling)
height: parent.height - (2 * scaling * 2)
radius: height * 0.5
color: root.checked ? Color.mOnPrimary : Color.mPrimary
border.color: root.checked ? Color.mSurface : Color.mSurface