adjust config switch size

This commit is contained in:
end-4
2025-06-21 01:04:07 +02:00
parent 47c9d63210
commit d5a9ae32f2
@@ -7,6 +7,7 @@ import QtQuick.Controls
RippleButton { RippleButton {
id: root id: root
Layout.fillWidth: true Layout.fillWidth: true
implicitHeight: contentItem.implicitHeight + 8 * 2
contentItem: RowLayout { contentItem: RowLayout {
spacing: 10 spacing: 10
@@ -14,13 +15,13 @@ RippleButton {
id: labelWidget id: labelWidget
Layout.fillWidth: true Layout.fillWidth: true
text: root.text text: root.text
font.pixelSize: Appearance.font.pixelSize.normal font.pixelSize: Appearance.font.pixelSize.small
color: Appearance.colors.colOnSecondaryContainer color: Appearance.colors.colOnSecondaryContainer
} }
StyledSwitch { StyledSwitch {
id: switchWidget id: switchWidget
down: root.down down: root.down
scale: 0.75 scale: 0.6
Layout.fillWidth: false Layout.fillWidth: false
checked: root.checked checked: root.checked
onClicked: root.clicked() onClicked: root.clicked()