diff --git a/cromulant/config.py b/cromulant/config.py index 09e3b75..251e6dc 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -27,7 +27,7 @@ class Config: loop_delay_slow: int = 60_000 hatch_burst: int = 3 font_size: int = 20 - footer_font_size: int = 18 + info_separator: str = " - " @staticmethod def prepare() -> None: diff --git a/cromulant/game.py b/cromulant/game.py index 677801b..c526c68 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -191,5 +191,5 @@ class Game: if hits: text.append(f"Hits:{nb}{hits.name}") - Window.info.setText(" | ".join(text)) + Window.info.setText(Config.info_separator.join(text)) Window.info.adjustSize() diff --git a/cromulant/window.py b/cromulant/window.py index d4e5c32..8dff08a 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -187,7 +187,7 @@ class Window: Window.info = SpecialButton("---") Window.info.setToolTip("Scroll to the bottom") Window.info.clicked.connect(Window.to_bottom) - Window.expand(Window.info) + Window.info.setMinimumSize(35, 35) container.addWidget(Window.info) root.setLayout(container) Window.root.addWidget(root)