aboutsummaryrefslogtreecommitdiff
path: root/components/CheckBox2.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-07-17 16:56:03 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-07-17 16:56:03 -0500
commit9331f2cff173eb92f3feee6776b6faf4ef1b2b45 (patch)
treeef2d7f39d13736eb7e6074b57e1821d08e104a5d /components/CheckBox2.qml
parent2633419c8e428edd414ca3331544a1335baa4d9e (diff)
parentf7bbdd3044a4a780259b18e649347c3f7117e72b (diff)
downloadmonzero-gui-9331f2cff173eb92f3feee6776b6faf4ef1b2b45.tar.gz
monzero-gui-9331f2cff173eb92f3feee6776b6faf4ef1b2b45.tar.xz
monzero-gui-9331f2cff173eb92f3feee6776b6faf4ef1b2b45.zip
Merge pull request #1452
f7bbdd3 add explicit mainnet button and move nettypes to advanced options (cryptochangements34)
Diffstat (limited to 'components/CheckBox2.qml')
-rw-r--r--components/CheckBox2.qml11
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
}
}