aboutsummaryrefslogtreecommitdiff
path: root/components/CheckBox2.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-04-25 15:27:19 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-04-25 15:27:19 -0500
commitb0ba2379f4c657999510b054a22cb5c906e71e8a (patch)
tree5d5c4d35786fb65052784fe6a70e3d08dac2eb01 /components/CheckBox2.qml
parent5887f87677b40b70b689e20056a57957157ed481 (diff)
parent62285b01dc77ef14e4b5b9cc291e34162321ad89 (diff)
downloadmonzero-gui-b0ba2379f4c657999510b054a22cb5c906e71e8a.tar.gz
monzero-gui-b0ba2379f4c657999510b054a22cb5c906e71e8a.tar.xz
monzero-gui-b0ba2379f4c657999510b054a22cb5c906e71e8a.zip
Merge pull request #2069
62285b0 Remove scaleRatio (xmrdsc)
Diffstat (limited to 'components/CheckBox2.qml')
-rw-r--r--components/CheckBox2.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/CheckBox2.qml b/components/CheckBox2.qml
index 899f1f1e..08c86e7b 100644
--- a/components/CheckBox2.qml
+++ b/components/CheckBox2.qml
@@ -39,11 +39,11 @@ RowLayout {
id: checkBox
property alias text: label.text
property bool checked: false
- property int fontSize: 14 * scaleRatio
+ property int fontSize: 14
property alias fontColor: label.color
- property int textMargin: 8 * scaleRatio
+ property int textMargin: 8
signal clicked()
- height: 25 * scaleRatio
+ height: 25
function toggle(){
checkBox.checked = !checkBox.checked
@@ -75,13 +75,13 @@ RowLayout {
anchors.left: label.right
anchors.leftMargin: textMargin
color: "transparent"
- rotation: checkBox.checked ? 180 * scaleRatio : 0
+ rotation: checkBox.checked ? 180 : 0
MoneroEffects.ImageMask {
id: indicatorImage
anchors.centerIn: parent
- width: 12 * scaleRatio
- height: 8 * scaleRatio
+ width: 12
+ height: 8
image: "qrc:///images/whiteDropIndicator.png"
color: MoneroComponents.Style.defaultFontColor
opacity: MoneroComponents.Style.blackTheme ? 1 : 0.75