From f04a9e07e13d0140c0a82799d428c0cd7e287105 Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Sun, 15 Apr 2018 09:45:30 -0400 Subject: [PATCH] single colour privacy level --- components/PrivacyLevel.qml | 6 +----- components/PrivacyLevelSmall.qml | 6 +----- pages/Transfer.qml | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/components/PrivacyLevel.qml b/components/PrivacyLevel.qml index 448eb123..9cfe09d1 100644 --- a/components/PrivacyLevel.qml +++ b/components/PrivacyLevel.qml @@ -62,11 +62,7 @@ Item { //radius: 2 width: row.x - color: { - if(item.fillLevel < 3) return "#FF6C3C" - if(item.fillLevel < 13) return "#AAFFBB" - return "#36B25C" - } + color: "#FF6C3C" Timer { interval: 500 diff --git a/components/PrivacyLevelSmall.qml b/components/PrivacyLevelSmall.qml index c380d6a7..7b869044 100644 --- a/components/PrivacyLevelSmall.qml +++ b/components/PrivacyLevelSmall.qml @@ -71,11 +71,7 @@ Item { //radius: 2 width: row.x - color: { - if(item.fillLevel < 5) return "#FF6C3C" - if(item.fillLevel < 13) return "#AAFFBB" - return "#36B25C" - } + color: "#FF6C3C" Timer { interval: 500 diff --git a/pages/Transfer.qml b/pages/Transfer.qml index d572e315..f7840acc 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -79,7 +79,7 @@ Rectangle { var mixin = scaleValueToMixinCount(fillLevel) console.log("PrivacyLevel changed:" + fillLevel) console.log("mixin count: " + mixin) - privacyLabel.text = qsTr("Privacy level (ringsize %1)").arg(mixin+1) + translationManager.emptyString + privacyLabel.text = qsTr("Ring size: %1").arg(mixin+1) + translationManager.emptyString } function updateFromQrCode(address, payment_id, amount, tx_description, recipient_name) {