From 77f551a754e949f4b43d2962acafe37cdfc0e1b1 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sat, 20 Jul 2024 01:41:14 -0600 Subject: [PATCH] Mods --- cromulant/window.py | 48 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/cromulant/window.py b/cromulant/window.py index 484eed8..c2d57d2 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -90,6 +90,7 @@ class Window: Window.emoji_font = QFontDatabase.applicationFontFamilies(emoji_font_id)[0] style = f""" + QWidget {{ background-color: {Config.background_color}; color: {Config.text_color}; @@ -139,6 +140,28 @@ class Window: border: 1px solid {Config.alt_border_color}; }} + QScrollBar:vertical {{ + border: 0px solid transparent; + background: {Config.background_color}; + width: 15px; + margin: 0px 0px 0px 0px; + }} + + QScrollBar::handle:vertical {{ + background: {Config.scrollbar_handle_color}; + min-height: 20px; + }} + + QScrollBar::add-line:vertical {{ + border: none; + background: none; + }} + + QScrollBar::sub-line:vertical {{ + border: none; + background: none; + }} + """.strip() Window.app.setStyleSheet(style) @@ -194,31 +217,6 @@ class Window: Window.scroll_area = QScrollArea() Window.scroll_area.setWidgetResizable(True) - style = f""" - QScrollBar:vertical {{ - border: 0px solid transparent; - background: {Config.background_color}; - width: 15px; - margin: 0px 0px 0px 0px; - }} - - QScrollBar::handle:vertical {{ - background: {Config.scrollbar_handle_color}; - min-height: 20px; - }} - - QScrollBar::add-line:vertical {{ - border: none; - background: none; - }} - - QScrollBar::sub-line:vertical {{ - border: none; - background: none; - }} - """ - - Window.scroll_area.setStyleSheet(style) container = QWidget() parent = QVBoxLayout(container) Window.view = QVBoxLayout()