forked from Shinonome/dots-hyprland
adjust config switch size
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user