This commit is contained in:
Auric Vente 2024-07-20 01:41:14 -06:00
parent 5649a8feea
commit 77f551a754
1 changed files with 23 additions and 25 deletions

View File

@ -90,6 +90,7 @@ class Window:
Window.emoji_font = QFontDatabase.applicationFontFamilies(emoji_font_id)[0] Window.emoji_font = QFontDatabase.applicationFontFamilies(emoji_font_id)[0]
style = f""" style = f"""
QWidget {{ QWidget {{
background-color: {Config.background_color}; background-color: {Config.background_color};
color: {Config.text_color}; color: {Config.text_color};
@ -139,6 +140,28 @@ class Window:
border: 1px solid {Config.alt_border_color}; 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() """.strip()
Window.app.setStyleSheet(style) Window.app.setStyleSheet(style)
@ -194,31 +217,6 @@ class Window:
Window.scroll_area = QScrollArea() Window.scroll_area = QScrollArea()
Window.scroll_area.setWidgetResizable(True) 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() container = QWidget()
parent = QVBoxLayout(container) parent = QVBoxLayout(container)
Window.view = QVBoxLayout() Window.view = QVBoxLayout()