New (now hopefully unambiguous) checkbox style.

This commit is contained in:
2016-12-04 22:32:53 +01:00
parent bb7ce53f49
commit 000afb9790
+12 -10
View File
@@ -8,18 +8,20 @@ CheckBox {
spacing: 12 spacing: 12
indicator: Rectangle { indicator: Rectangle {
implicitWidth: 26 implicitWidth: 28
implicitHeight: 26 implicitHeight: 28
x: parent.leftPadding x: parent.leftPadding
y: parent.height / 2 - height / 2 y: parent.height / 2 - height / 2
radius: 3 color: parent.enabled ? (parent.down ? "#e0e0e0" : "#ffffff") : "#a0a0a0"
Rectangle { border.width: 0
width: 18 Image {
height: 18 width: 38
x: 4 height: 38
y: 4 x: (parent.width - width) / 2
radius: 2 y: (parent.height - height) / 2
color: "#1b2939" source: "image://default/check/#2c435d"
sourceSize.width: width
sourceSize.height: height
visible: parent.parent.checked visible: parent.parent.checked
} }
} }