From f7bbdd3044a4a780259b18e649347c3f7117e72b Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Thu, 7 Jun 2018 12:23:47 -0400 Subject: add explicit mainnet button and move nettypes to advanced options --- components/CheckBox2.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'components') 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 } } -- cgit v1.2.3