This commit is contained in:
Auric Vente 2024-07-21 02:39:14 -06:00
parent 0ecee9230e
commit 83a09e72c6
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ class Config:
input_caret_color: str = "rgb(18, 18, 18)" input_caret_color: str = "rgb(18, 18, 18)"
settings_json: Path settings_json: Path
countries_json: Path countries_json: Path
filter_width: int = 150
@staticmethod @staticmethod
def prepare() -> None: def prepare() -> None:

View File

@ -194,7 +194,7 @@ class Window:
Window.speed.currentIndexChanged.connect(Game.update_speed) Window.speed.currentIndexChanged.connect(Game.update_speed)
Window.filter = FilterLineEdit() Window.filter = FilterLineEdit()
Window.filter.setFixedWidth(150) Window.filter.setFixedWidth(Config.filter_width)
Window.filter.setPlaceholderText("Filter") Window.filter.setPlaceholderText("Filter")
Window.filter.mousePressEvent = lambda e: Window.to_top() Window.filter.mousePressEvent = lambda e: Window.to_top()
Window.filter.keyReleaseEvent = lambda e: Filter.filter(e) Window.filter.keyReleaseEvent = lambda e: Filter.filter(e)