diff --git a/assets/templates_2560x1440/char_inventory_active.png b/assets/templates_2560x1440/char_inventory_active.png index 4aa32e1e..e008eec1 100644 Binary files a/assets/templates_2560x1440/char_inventory_active.png and b/assets/templates_2560x1440/char_inventory_active.png differ diff --git a/assets/templates_2560x1440/char_inventory_active_hover.png b/assets/templates_2560x1440/char_inventory_active_hover.png index 788a1899..b9ac96c9 100644 Binary files a/assets/templates_2560x1440/char_inventory_active_hover.png and b/assets/templates_2560x1440/char_inventory_active_hover.png differ diff --git a/assets/templates_2560x1440/stash_menu_icon.png b/assets/templates_2560x1440/stash_menu_icon.png index 2b18ae80..413cb0d3 100644 Binary files a/assets/templates_2560x1440/stash_menu_icon.png and b/assets/templates_2560x1440/stash_menu_icon.png differ diff --git a/src/cam.py b/src/cam.py index 664d4efc..47ca8588 100644 --- a/src/cam.py +++ b/src/cam.py @@ -35,8 +35,8 @@ def update_window_pos(self, offset_x: int, offset_y: int, width: int, height: in and self.window_roi["height"] == height ): return - Logger.info(f"Found Window. offsets: left {offset_x}px, top {offset_y}px, width {width}px, height {height}px") self.res_key = f"{width}x{height}" + Logger.info(f"Found Window Res: {self.res_key}") if self.res_key not in ["1920x1080", "2560x1440"]: Logger.error(f"The resoltuion: {self.res_key} is not supported.") os._exit(0) diff --git a/src/overlay.py b/src/overlay.py index 887e97b7..173b6c0b 100644 --- a/src/overlay.py +++ b/src/overlay.py @@ -38,8 +38,8 @@ def __init__(self): self.screen_height = self.root.winfo_screenheight() self.initial_height = int(self.root.winfo_screenheight() * 0.03) self.initial_width = int(self.screen_width * 0.072) - self.maximized_height = int(self.initial_height * 3.85) - self.maximized_width = int(self.initial_width * 6) + self.maximized_height = int(self.initial_height * 3.4) + self.maximized_width = int(self.initial_width * 5) self.canvas = tk.Canvas(self.root, bg="black", height=self.initial_height, width=self.initial_width, highlightthickness=0) self.root.geometry( @@ -77,6 +77,11 @@ def __init__(self): ) self.canvas.create_window(int(self.initial_width * 0.8), self.initial_height // 2, window=self.start_scripts_button) + font_size = 8 + if Config().ui_pos["window_dimensions"] == (2560, 1440): + font_size = 9 + elif Config().ui_pos["window_dimensions"] == (3840, 2160): + font_size = 10 self.terminal_listbox = tk.Listbox( self.canvas, bg="black", @@ -86,7 +91,7 @@ def __init__(self): selectbackground="#222222", activestyle=tk.NONE, borderwidth=0, - font=("Courier New", 9), + font=("Courier New", font_size), ) self.terminal_listbox.place( relx=0,