From e4eecef0f7e49a99821b3470ba366701cf02361c Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Sat, 31 Oct 2026 18:52:38 +0300 Subject: [PATCH] Pick the installer log font next to the UI font --- installer/gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/gui.py b/installer/gui.py index e2ab3d3c..cd94fcde 100644 --- a/installer/gui.py +++ b/installer/gui.py @@ -67,6 +67,7 @@ class App: root.iconphoto(True, self.icon) root.protocol('WM_DELETE_WINDOW', self.on_close) self.ui_font = 'Segoe UI' if os.name == 'nt' else 'DejaVu Sans' + self.mono_font = 'Consolas' if os.name == 'nt' else 'DejaVu Sans Mono' style = ttk.Style(root) style.configure('Title.TLabel', font=(self.ui_font, 15, 'bold')) style.configure('Notice.TLabel', background='#fff3cd', foreground='#664d03', padding=8) @@ -234,7 +235,7 @@ class App: self.warn_label = ttk.Label(f, wraplength=620, justify='left', foreground='#9a6700') self.warn_label.pack(anchor='w') self.log_frame = ttk.Frame(f) - self.log = tk.Text(self.log_frame, height=10, wrap='word', state='disabled', font=('Consolas' if os.name == 'nt' else 'DejaVu Sans Mono', 9)) + self.log = tk.Text(self.log_frame, height=10, wrap='word', state='disabled', font=(self.mono_font, 9)) scroll = ttk.Scrollbar(self.log_frame, command=self.log.yview) self.log.configure(yscrollcommand=scroll.set) scroll.pack(side='right', fill='y')