From 83a09e72c6ed62053cae8d467c456406ddaec333 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sun, 21 Jul 2024 02:39:14 -0600 Subject: [PATCH] Mods --- cromulant/config.py | 1 + cromulant/window.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cromulant/config.py b/cromulant/config.py index a9a64d5..2d90a44 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -52,6 +52,7 @@ class Config: input_caret_color: str = "rgb(18, 18, 18)" settings_json: Path countries_json: Path + filter_width: int = 150 @staticmethod def prepare() -> None: diff --git a/cromulant/window.py b/cromulant/window.py index 1e30be0..832c0b5 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -194,7 +194,7 @@ class Window: Window.speed.currentIndexChanged.connect(Game.update_speed) Window.filter = FilterLineEdit() - Window.filter.setFixedWidth(150) + Window.filter.setFixedWidth(Config.filter_width) Window.filter.setPlaceholderText("Filter") Window.filter.mousePressEvent = lambda e: Window.to_top() Window.filter.keyReleaseEvent = lambda e: Filter.filter(e)