This commit is contained in:
Auric Vente 2024-07-20 01:24:28 -06:00
parent 63debc5e5f
commit 5649a8feea
2 changed files with 29 additions and 19 deletions

View File

@ -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)"

View File

@ -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)