This commit is contained in:
Auric Vente 2024-07-19 21:19:59 -06:00
parent 2f83be5042
commit 45588cbe2a
2 changed files with 19 additions and 3 deletions

View File

@ -38,17 +38,18 @@ class Config:
hit_message: str = "Took a hit"
song_path: Path
logo_path: Path
context_menu_background_color: str = "rgb(22, 22, 22)"
context_menu_background_color: str = "rgb(33, 33, 33)"
context_menu_text_color: str = "white"
context_menu_hover_background_color: str = "rgb(36, 36, 36)"
context_menu_hover_background_color: str = "rgb(44, 44, 44)"
context_menu_hover_text_color: str = "white"
message_box_background_color: str = "rgb(22, 22, 22)"
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"
message_box_button_hover_background_color: str = "rgb(66, 66, 66)"
message_box_button_hover_text_color: str = "white"
scrollbar_handle_color: str = "rgb(66, 66, 66)"
@staticmethod
def prepare() -> None:

View File

@ -177,6 +177,21 @@ 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;
}}
"""
Window.scroll_area.setStyleSheet(style)
container = QWidget()
parent = QVBoxLayout(container)
Window.view = QVBoxLayout()