diff --git a/cromulant/config.py b/cromulant/config.py index 09e3b75..cac9bfd 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -28,6 +28,7 @@ class Config: hatch_burst: int = 3 font_size: int = 20 footer_font_size: int = 18 + footer_background_color: str = "#424242" @staticmethod def prepare() -> None: diff --git a/cromulant/window.py b/cromulant/window.py index 1239e1e..66ddd6d 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -67,6 +67,7 @@ class Window: style = f"QWidget {{ background-color: {Config.background_color}; \ color: {Config.text_color}; font-size: {Config.font_size}px}}" + Window.root.setContentsMargins(0, 0, 0, 0) Window.app.setStyleSheet(style) @staticmethod @@ -166,10 +167,13 @@ class Window: @staticmethod def add_footer() -> None: + root = QWidget() + root.setStyleSheet(f"background-color: {Config.footer_background_color};") layout = QHBoxLayout() Window.info = QLabel("---") Window.info.setWordWrap(True) Window.info.setStyleSheet(f"font-size: {Config.footer_font_size}px;") Window.expand(Window.info) layout.addWidget(Window.info) - Window.root.addLayout(layout) + root.setLayout(layout) + Window.root.addWidget(root)