diff options
Diffstat (limited to 'components/CheckBox2.qml')
| -rw-r--r-- | components/CheckBox2.qml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/components/CheckBox2.qml b/components/CheckBox2.qml index 367037c2..cb367079 100644 --- a/components/CheckBox2.qml +++ b/components/CheckBox2.qml @@ -28,6 +28,7 @@ import QtQuick 2.0 import QtQuick.Layouts 1.1 +import QtGraphicalEffects 1.0 import "." 1.0 RowLayout { @@ -40,6 +41,7 @@ RowLayout { property int fontSize: 14 * scaleRatio property alias fontColor: label.color property int textMargin: 8 * scaleRatio + property bool darkDropIndicator: false signal clicked() height: 25 * scaleRatio @@ -74,12 +76,19 @@ RowLayout { anchors.left: label.right anchors.leftMargin: textMargin color: "transparent" + rotation: checkBox.checked ? 180 * scaleRatio : 0 Image { id: indicatorImage anchors.centerIn: parent source: "../images/whiteDropIndicator.png" - rotation: checkBox.checked ? 180 * scaleRatio : 0 + visible: !darkDropIndicator + } + ColorOverlay { + anchors.fill: indicatorImage + source: indicatorImage + color: "#FF000000" + visible: darkDropIndicator } } |
