make switch of more correct size

This commit is contained in:
end-4
2025-11-13 21:23:02 +01:00
parent 2ea3904b56
commit e07ddaa0b3
2 changed files with 1 additions and 2 deletions
@@ -34,7 +34,6 @@ RippleButton {
StyledSwitch { StyledSwitch {
id: switchWidget id: switchWidget
down: root.down down: root.down
scale: 0.6
Layout.fillWidth: false Layout.fillWidth: false
checked: root.checked checked: root.checked
onClicked: root.clicked() onClicked: root.clicked()
@@ -9,7 +9,7 @@ import Qt5Compat.GraphicalEffects
*/ */
Switch { Switch {
id: root id: root
property real scale: 0.6 // Default in m3 spec is huge af property real scale: 0.75 // Default in m3 spec is huge af
implicitHeight: 32 * root.scale implicitHeight: 32 * root.scale
implicitWidth: 52 * root.scale implicitWidth: 52 * root.scale
property color activeColor: Appearance?.colors.colPrimary ?? "#685496" property color activeColor: Appearance?.colors.colPrimary ?? "#685496"