From 9333843919e224f9593567636cd2cd541596c9ce Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Thu, 12 Sep 2024 20:13:45 +0200 Subject: [PATCH] optionsutil: tweak showValuesHMargins text string Attempting to align the numbers on the same column was a fool's errand. Our default UI font is not monospaced, to begin with, and to do it right, we'd need to align the rightmost number, not the leftmost ;). i.e., T() would need to have much fancier justification capabilities ;). Or, err, *any* text justification features, really ^^. --- frontend/ui/data/optionsutil.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/ui/data/optionsutil.lua b/frontend/ui/data/optionsutil.lua index c1198a2f5..ce4c80924 100644 --- a/frontend/ui/data/optionsutil.lua +++ b/frontend/ui/data/optionsutil.lua @@ -185,7 +185,7 @@ function optionsutil.showValuesHMargins(configurable, option) UIManager:show(InfoMessage:new{ text = T(_([[ Current margins: - left: %1 + left: %1 right: %2 Default margins: not set]]), real_size_string(current[1], unit), @@ -195,10 +195,10 @@ Default margins: not set]]), UIManager:show(InfoMessage:new{ text = T(_([[ Current margins: - left: %1 + left: %1 right: %2 Default margins: - left: %3 + left: %3 right: %4]]), real_size_string(current[1], unit), real_size_string(current[2], unit),