From d8e7776937fb70c5d558034d58421702a8715231 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Fri, 19 Jul 2024 19:38:40 -0600 Subject: [PATCH] Mods --- cromulant/config.py | 4 ++-- cromulant/window.py | 15 +-------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/cromulant/config.py b/cromulant/config.py index 9e18588..f81f09d 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -17,7 +17,7 @@ class Config: hatched_image_path: Path terminated_image_path: Path names_json: Path - background_color: str = "#2c2c2c" + background_color: str = "rgb(44, 44, 44)" text_color: str = "#ffffff" image_size: int = 80 space_1: int = 20 @@ -56,4 +56,4 @@ class Config: Config.font_path = Config.here / "fonts" / "NotoSans-Regular.ttf" Config.emoji_font_path = Config.here / "fonts" / "NotoEmoji-Regular.ttf" Config.song_path = Config.here / "audio" / "March of the Cyber Ants.mp3" - Config.logo_path = Config.here / "img" / "logo_3.jpg" + Config.logo_path = Config.here / "img" / "logo_3.jpg" \ No newline at end of file diff --git a/cromulant/window.py b/cromulant/window.py index 65b5d21..e5a9d01 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -89,9 +89,9 @@ class Window: }} """.strip() + Window.app.setStyleSheet(style) Window.app.setFont(Window.font) Window.root.setContentsMargins(0, 0, 0, 0) - Window.app.setStyleSheet(style) @staticmethod def add_buttons() -> None: @@ -139,19 +139,6 @@ class Window: Window.scroll_area = QScrollArea() Window.scroll_area.setWidgetResizable(True) - # image_path = str(Config.logo_path) - # image_url = QUrl.fromLocalFile(image_path).toString() - - # style = f""" - # QWidget {{ - # background-image: url({image_url}); - # background-repeat: no-repeat; - # background-position: center; - # }} - # """ - - # Window.scroll_area.setStyleSheet(style) - container = QWidget() parent = QVBoxLayout(container) Window.view = QVBoxLayout()