From 5028491ab3791673fbb21abdeec978da83f222ee Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Thu, 7 Dec 2017 16:22:30 +0100 Subject: Added new checkbox checked icon --- components/CheckBox.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components') diff --git a/components/CheckBox.qml b/components/CheckBox.qml index 5e7066b1..4ca687b4 100644 --- a/components/CheckBox.qml +++ b/components/CheckBox.qml @@ -55,7 +55,7 @@ RowLayout { radius: 3 y: 0 color: "transparent" - border.color: Qt.rgba(1, 1, 1, 0.25) + border.color: checkBox.checked ? Qt.rgba(1, 1, 1, 0.35) : Qt.rgba(1, 1, 1, 0.25) } Rectangle { @@ -69,8 +69,8 @@ RowLayout { Image { anchors.centerIn: parent - source: checkBox.checked ? checkBox.checkedIcon : - checkBox.uncheckedIcon + source: checkBox.checkedIcon + visible: checkBox.checked } MouseArea { -- cgit v1.2.3