mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
single colour privacy level
This commit is contained in:
parent
b4353a31ac
commit
f04a9e07e1
3 changed files with 3 additions and 11 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue