single colour privacy level

This commit is contained in:
cryptochangements34 2018-04-15 09:45:30 -04:00
parent b4353a31ac
commit f04a9e07e1
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) {