Skip to content

Commit

Permalink
Adjust toggle button size
Browse files Browse the repository at this point in the history
CURA-3574
  • Loading branch information
LipuFei committed Apr 18, 2017
1 parent c75887b commit 6bf0965
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/themes/cura/styles.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ QtObject {
property Component toggle_button: Component {
SwitchStyle {
groove: Rectangle {
implicitWidth: 40
implicitWidth: 30
implicitHeight: 15
radius: 9
border.color: {
Expand All @@ -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: {
Expand Down

0 comments on commit 6bf0965

Please sign in to comment.