Merge pull request #1320

f04a9e0 single colour privacy level
This commit is contained in:
luigi1111 2018-04-19 11:37:02 -05:00
commit d72e9873d1
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
3 changed files with 3 additions and 11 deletions

View file

@ -62,11 +62,7 @@ Item {
//radius: 2 //radius: 2
width: row.x width: row.x
color: { color: "#FF6C3C"
if(item.fillLevel < 3) return "#FF6C3C"
if(item.fillLevel < 13) return "#AAFFBB"
return "#36B25C"
}
Timer { Timer {
interval: 500 interval: 500

View file

@ -71,11 +71,7 @@ Item {
//radius: 2 //radius: 2
width: row.x width: row.x
color: { color: "#FF6C3C"
if(item.fillLevel < 5) return "#FF6C3C"
if(item.fillLevel < 13) return "#AAFFBB"
return "#36B25C"
}
Timer { Timer {
interval: 500 interval: 500

View file

@ -79,7 +79,7 @@ Rectangle {
var mixin = scaleValueToMixinCount(fillLevel) var mixin = scaleValueToMixinCount(fillLevel)
console.log("PrivacyLevel changed:" + fillLevel) console.log("PrivacyLevel changed:" + fillLevel)
console.log("mixin count: " + mixin) 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) { function updateFromQrCode(address, payment_id, amount, tx_description, recipient_name) {