Skip to content

Commit df06810

Browse files
committed
Change console font and a few fixes
1 parent b395bdb commit df06810

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

utils/gui.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from pathlib import Path
1616
from ttkbootstrap.scrolled import ScrolledFrame, ScrolledText
17-
from PIL import Image, ImageTk, ImageOps
17+
from PIL import Image, ImageTk
1818

1919
PATH = Path(__file__).parent
2020

@@ -289,7 +289,7 @@ def draw_home(self):
289289
)
290290
console_textarea.pack(fill="both", expand=True)
291291

292-
self.console_inner_wrapper = ttk.Text(console_textarea, wrap="word", height=20, font=("Menlo", 12))
292+
self.console_inner_wrapper = ttk.Text(console_textarea, wrap="word", height=20, font=("JetBrainsMono NF Regular", 12))
293293
self.console_inner_wrapper.config(
294294
border=0,
295295
background=self.root.style.colors.get("dark"),
@@ -617,7 +617,7 @@ def save_cfg():
617617
cfg.set(key, tkinter_entry.get())
618618

619619
cfg.set("rich_presence.enabled", config_tk_entries["rich_presence"].instate(["selected"]), save=False)
620-
cfg.set("gui", config_tk_entries["gui"].instate(["selected"]), save=False)
620+
# cfg.set("gui", config_tk_entries["gui"].instate(["selected"]), save=False)
621621

622622
cfg.save()
623623
cfg.check()
@@ -691,11 +691,7 @@ def save_cfg():
691691
gui_checkbox = ttk.Checkbutton(config_frame, text="Enable GUI", style="success.TCheckbutton")
692692
gui_checkbox.configure(state="disabled")
693693
gui_checkbox.grid(row=len(config_entries) + 2, column=0, columnspan=2, sticky=ttk.W, padx=(13, 0), pady=(10, 0))
694-
if cfg.get("gui"):
695-
gui_checkbox.invoke()
696-
else:
697-
for _ in range(2):
698-
gui_checkbox.invoke()
694+
gui_checkbox.invoke()
699695

700696
config_tk_entries["rich_presence"] = rpc_checkbox
701697
config_tk_entries["gui"] = gui_checkbox
@@ -879,6 +875,7 @@ def draw_rich_presence(self):
879875
main.grid_columnconfigure(0, weight=1)
880876

881877
rpc_entries = {
878+
"client_id": "Client ID",
882879
"details": "Details",
883880
"state": "State",
884881
"large_image": "Large Image Key",

0 commit comments

Comments
 (0)