1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-25 01:53:43 +01:00

LeftPanel: don't change font size if balance is hidden

This commit is contained in:
selsta 2019-04-30 02:45:15 +02:00
parent ff6ce6294b
commit ed0bccc7e2
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -226,6 +226,9 @@ Rectangle {
text: "N/A"
// dynamically adjust text size
font.pixelSize: {
if (persistentSettings.hideBalance) {
return 20;
}
var digits = text.split('.')[0].length
var defaultSize = 22;
if(digits > 2) {
@ -265,6 +268,9 @@ Rectangle {
text: "N/A"
// dynamically adjust text size
font.pixelSize: {
if (persistentSettings.hideBalance) {
return 20;
}
var digits = text.split('.')[0].length
var defaultSize = 20;
if(digits > 3) {