mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:05:55 +08:00
Adjust toggle button size
CURA-3574
This commit is contained in:
parent
c75887be80
commit
6bf0965632
@ -11,7 +11,7 @@ QtObject {
|
|||||||
property Component toggle_button: Component {
|
property Component toggle_button: Component {
|
||||||
SwitchStyle {
|
SwitchStyle {
|
||||||
groove: Rectangle {
|
groove: Rectangle {
|
||||||
implicitWidth: 40
|
implicitWidth: 30
|
||||||
implicitHeight: 15
|
implicitHeight: 15
|
||||||
radius: 9
|
radius: 9
|
||||||
border.color: {
|
border.color: {
|
||||||
@ -24,12 +24,12 @@ QtObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Behavior on border.color { ColorAnimation { duration: 50; } }
|
Behavior on border.color { ColorAnimation { duration: 50; } }
|
||||||
border.width: 2
|
border.width: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
handle: Rectangle {
|
handle: Rectangle {
|
||||||
implicitWidth: Math.round((parent.parent.width - padding.left - padding.right)/2)
|
implicitHeight: 15
|
||||||
implicitHeight: implicitWidth
|
implicitWidth: 15
|
||||||
radius: 9
|
radius: 9
|
||||||
|
|
||||||
color: {
|
color: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user