From 6bf096563246c1271f13c7e805b161071dabd788 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 18 Apr 2017 16:52:17 +0200 Subject: [PATCH] Adjust toggle button size CURA-3574 --- resources/themes/cura/styles.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/themes/cura/styles.qml b/resources/themes/cura/styles.qml index 18508a0055..9b553236c8 100644 --- a/resources/themes/cura/styles.qml +++ b/resources/themes/cura/styles.qml @@ -11,7 +11,7 @@ QtObject { property Component toggle_button: Component { SwitchStyle { groove: Rectangle { - implicitWidth: 40 + implicitWidth: 30 implicitHeight: 15 radius: 9 border.color: { @@ -24,12 +24,12 @@ QtObject { } } Behavior on border.color { ColorAnimation { duration: 50; } } - border.width: 2 + border.width: 1 } handle: Rectangle { - implicitWidth: Math.round((parent.parent.width - padding.left - padding.right)/2) - implicitHeight: implicitWidth + implicitHeight: 15 + implicitWidth: 15 radius: 9 color: {