mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 19:32:03 +02:00
Merge pull request #2136
ed0bccc
LeftPanel: don't change font size if balance is hidden (selsta)
This commit is contained in:
commit
afd9449b1d
@ -226,6 +226,9 @@ Rectangle {
|
|||||||
text: "N/A"
|
text: "N/A"
|
||||||
// dynamically adjust text size
|
// dynamically adjust text size
|
||||||
font.pixelSize: {
|
font.pixelSize: {
|
||||||
|
if (persistentSettings.hideBalance) {
|
||||||
|
return 20;
|
||||||
|
}
|
||||||
var digits = text.split('.')[0].length
|
var digits = text.split('.')[0].length
|
||||||
var defaultSize = 22;
|
var defaultSize = 22;
|
||||||
if(digits > 2) {
|
if(digits > 2) {
|
||||||
@ -265,6 +268,9 @@ Rectangle {
|
|||||||
text: "N/A"
|
text: "N/A"
|
||||||
// dynamically adjust text size
|
// dynamically adjust text size
|
||||||
font.pixelSize: {
|
font.pixelSize: {
|
||||||
|
if (persistentSettings.hideBalance) {
|
||||||
|
return 20;
|
||||||
|
}
|
||||||
var digits = text.split('.')[0].length
|
var digits = text.split('.')[0].length
|
||||||
var defaultSize = 20;
|
var defaultSize = 20;
|
||||||
if(digits > 3) {
|
if(digits > 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user