Mods
This commit is contained in:
parent
0ecee9230e
commit
83a09e72c6
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue