From 9c6d24e50e223b62ce338ae4e802942c25da6872 Mon Sep 17 00:00:00 2001 From: Jocke Date: Sun, 21 Oct 2018 16:55:41 +0200 Subject: Mobile UI: make SsrfSwitch resizable Back in 8ab8a67f the checkbox where made resizable. This applies the same functionality to the selector switch and makes the two objects match in vertical size. Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/SsrfSwitch.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mobile-widgets/qml/SsrfSwitch.qml') diff --git a/mobile-widgets/qml/SsrfSwitch.qml b/mobile-widgets/qml/SsrfSwitch.qml index a08d8a92c..0986a4436 100644 --- a/mobile-widgets/qml/SsrfSwitch.qml +++ b/mobile-widgets/qml/SsrfSwitch.qml @@ -6,8 +6,8 @@ import org.kde.kirigami 2.4 as Kirigami Switch { id: root indicator: Rectangle { - implicitWidth: Kirigami.Units.largeSpacing * 2.2 - implicitHeight: Kirigami.Units.largeSpacing * 0.75 + implicitWidth: 36 * PrefDisplay.mobile_scale + implicitHeight: 12 * PrefDisplay.mobile_scale x: root.leftPadding y: parent.height / 2 - height / 2 radius: height / 2 @@ -18,8 +18,8 @@ Switch { Rectangle { x: root.checked ? parent.width - width : 0 y: parent.height / 2 - height / 2 - width: Kirigami.Units.largeSpacing * 1.1 - height: Kirigami.Units.largeSpacing * 1.1 + width: 20 * PrefDisplay.mobile_scale + height: 20 * PrefDisplay.mobile_scale radius: height / 2 color: root.down || root.checked ? subsurfaceTheme.primaryColor : subsurfaceTheme.lightPrimaryColor -- cgit v1.2.3-70-g09d2