From 5649a8feead719a14430b6885e14c87d42209af4 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sat, 20 Jul 2024 01:24:28 -0600 Subject: [PATCH] Mods --- cromulant/config.py | 14 +++++--------- cromulant/window.py | 34 ++++++++++++++++++++++++---------- 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/cromulant/config.py b/cromulant/config.py index ce79bf6..f4eb3ef 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -39,15 +39,11 @@ class Config: hit_message: str = "Took a hit" song_path: Path logo_path: Path - context_menu_background_color: str = "rgb(33, 33, 33)" - context_menu_text_color: str = "white" - context_menu_hover_background_color: str = "rgb(44, 44, 44)" - context_menu_hover_text_color: str = "white" - message_box_background_color: str = "rgb(33, 33, 33)" - message_box_text_color: str = "white" - message_box_label_text_color: str = "white" - message_box_button_background_color: str = "rgb(44, 44, 44)" - message_box_button_text_color: str = "white" + alt_background_color: str = "rgb(33, 33, 33)" + alt_text_color: str = "white" + alt_hover_background_color: str = "rgb(51, 51, 51)" + alt_hover_text_color: str = "white" + alt_border_color: str = "rgb(88, 88, 88)" message_box_button_hover_background_color: str = "rgb(66, 66, 66)" message_box_button_hover_text_color: str = "white" scrollbar_handle_color: str = "rgb(69, 69, 69)" diff --git a/cromulant/window.py b/cromulant/window.py index 4da94e2..484eed8 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -97,34 +97,48 @@ class Window: }} QMenu {{ - background-color: {Config.context_menu_background_color}; - color: {Config.context_menu_text_color}; + background-color: {Config.alt_background_color}; + color: {Config.alt_text_color}; + border: 1px solid {Config.alt_border_color}; }} QMenu::item:selected {{ - background-color: {Config.context_menu_hover_background_color}; - color: {Config.context_menu_hover_text_color}; + background-color: {Config.alt_hover_background_color}; + color: {Config.alt_hover_text_color}; }} QMessageBox {{ - background-color: {Config.message_box_background_color}; - color: {Config.message_box_text_color}; + background-color: {Config.alt_background_color}; + color: {Config.alt_text_color}; + border: 1px solid {Config.alt_border_color}; }} QMessageBox QLabel {{ - background-color: {Config.message_box_background_color}; - color: {Config.message_box_label_text_color}; + background-color: {Config.alt_background_color}; + color: {Config.alt_text_color}; }} QMessageBox QPushButton {{ - background-color: {Config.message_box_button_background_color}; - color: {Config.message_box_button_text_color}; + background-color: {Config.alt_background_color}; + color: {Config.alt_text_color}; }} QMessageBox QPushButton:hover {{ background-color: {Config.message_box_button_hover_background_color}; color: {Config.message_box_button_hover_text_color}; }} + + QComboBox {{ + selection-background-color: {Config.alt_hover_background_color}; + selection-color: {Config.alt_hover_text_color}; + }} + + QComboBox QAbstractItemView {{ + background-color: {Config.alt_background_color}; + color: {Config.alt_text_color}; + border: 1px solid {Config.alt_border_color}; + }} + """.strip() Window.app.setStyleSheet(style)