From 648454026339096eca04660087f0124d9cbaf288 Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Wed, 9 Sep 2020 13:35:05 +0100 Subject: [PATCH] UI Scaling: Add new strings to translation template --- L10n/en.template | 5 +++++ prefs.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/L10n/en.template b/L10n/en.template index 97e0d8b9..bc307293 100644 --- a/L10n/en.template +++ b/L10n/en.template @@ -526,3 +526,8 @@ /* Shortcut settings prompt on OSX. [prefs.py] */ "{APP} needs permission to use shortcuts" = "{APP} needs permission to use shortcuts"; +/* Label for 'UI Scaling' option [prefs.py] */ +"UI Scaling" = "UI Scaling"; + +/* Text describing that value '0.0' means 'default' [prefs.py] */ +"0.0 means Default" = "0.0 means Default"; diff --git a/prefs.py b/prefs.py index b7575721..0e64f377 100644 --- a/prefs.py +++ b/prefs.py @@ -340,7 +340,7 @@ class PreferencesDialog(tk.Toplevel): # UI Scaling ttk.Separator(themeframe, orient=tk.HORIZONTAL).grid(columnspan=4, padx=PADX, pady=PADY*4, sticky=tk.EW) - nb.Label(themeframe, text=_('UI Scaling')).grid(row = 23, padx=PADX, pady=2*PADY, sticky=tk.W) # Select UI scaling + nb.Label(themeframe, text=_('UI Scaling')).grid(row = 23, padx=PADX, pady=2*PADY, sticky=tk.W) self.ui_scaling = tk.DoubleVar() self.ui_scaling.set(float(config.get('ui_scaling'))) self.uiscale_bar = tk.Scale(