From c717ee955df9cc3f2097e5ace197f8dc1e642d6e Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Fri, 19 Jul 2024 01:18:28 -0600 Subject: [PATCH] Mods --- cromulant/config.py | 1 + cromulant/window.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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)