diff --git a/cromulant/config.py b/cromulant/config.py index d758ad3..0b9edee 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -51,7 +51,6 @@ class Config: input_caret_color: str = "rgb(18, 18, 18)" settings_json: Path countries_json: Path - filter_width: int = 150 filter_debouncer_delay: int = 200 default_population: int = 100 merge_goal: int = 10 diff --git a/cromulant/window.py b/cromulant/window.py index 33f0549..d7137fe 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -250,15 +250,14 @@ class Window: Window.mode.currentIndexChanged.connect(Game.update_mode) Window.filter = FilterLineEdit() - 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) - container.addWidget(btn_restart) - container.addWidget(Window.speed) - container.addWidget(Window.mode) - container.addWidget(Window.filter) + container.addWidget(btn_restart, 1) + container.addWidget(Window.speed, 1) + container.addWidget(Window.mode, 1) + container.addWidget(Window.filter, 1) root.setLayout(container) Window.root.addWidget(root)