mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 23:37:14 +03:00
Localised options
This commit is contained in:
parent
5235019d2a
commit
0258d881ea
@ -1,3 +1,9 @@
|
|||||||
|
/* Label for 'UI Transparency' option in [prefs.py]*/
|
||||||
|
"Main window transparency" = "Main window transparency";
|
||||||
|
|
||||||
|
/* Warning next to 'UI Transparency' slider */
|
||||||
|
"100 means fully opaque.{CR}Window is updated in real time{CR}do NOT use this with the transparent theme on windows" = "100 means fully opaque.{CR}Window is updated in real time{CR}do NOT use this with the transparent theme on windows";
|
||||||
|
|
||||||
/* Label for 'UI Scaling' option [prefs.py] */
|
/* Label for 'UI Scaling' option [prefs.py] */
|
||||||
"UI Scale Percentage" = "UI Scale Percentage";
|
"UI Scale Percentage" = "UI Scale Percentage";
|
||||||
|
|
||||||
|
12
prefs.py
12
prefs.py
@ -745,14 +745,14 @@ class PreferencesDialog(tk.Toplevel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
with row as cur_row:
|
with row as cur_row:
|
||||||
nb.Label(appearance_frame, text="Main window transparency").grid(
|
nb.Label(appearance_frame, text=_("Main window transparency")).grid(
|
||||||
padx=self.PADX, pady=self.PADY*2, sticky=tk.W, row=cur_row
|
padx=self.PADX, pady=self.PADY*2, sticky=tk.W, row=cur_row
|
||||||
)
|
)
|
||||||
self.transparency = tk.IntVar()
|
self.transparency = tk.IntVar()
|
||||||
self.transparency.set(config.getint('ui_transparency') or 100) # Default to 100 for users
|
self.transparency.set(config.getint('ui_transparency') or 100) # Default to 100 for users
|
||||||
self.transparency_bar = tk.Scale(
|
self.transparency_bar = tk.Scale(
|
||||||
appearance_frame,
|
appearance_frame,
|
||||||
variable=self.transparency,
|
variable=self.transparency, # type: ignore # Its accepted as an intvar
|
||||||
orient=tk.HORIZONTAL,
|
orient=tk.HORIZONTAL,
|
||||||
length=300 * (float(theme.startup_ui_scale) / 100.0 * theme.default_ui_scale), # type: ignore # runtime
|
length=300 * (float(theme.startup_ui_scale) / 100.0 * theme.default_ui_scale), # type: ignore # runtime
|
||||||
from_=100,
|
from_=100,
|
||||||
@ -764,11 +764,11 @@ class PreferencesDialog(tk.Toplevel):
|
|||||||
|
|
||||||
nb.Label(
|
nb.Label(
|
||||||
appearance_frame,
|
appearance_frame,
|
||||||
text=(
|
text=_(
|
||||||
"100 means fully opaque.\n"
|
"100 means fully opaque.{CR}"
|
||||||
"Window is updated in real time\n"
|
"Window is updated in real time{CR}"
|
||||||
"do NOT use this with the transparent theme on windows"
|
"do NOT use this with the transparent theme on windows"
|
||||||
)
|
).format(CR='\n')
|
||||||
).grid(
|
).grid(
|
||||||
column=3,
|
column=3,
|
||||||
padx=self.PADX,
|
padx=self.PADX,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user