This commit is contained in:
Auric Vente
2024-07-19 08:06:12 -06:00
parent 9e2c382e07
commit 8219137999
7 changed files with 23 additions and 8 deletions

View File

@@ -82,12 +82,12 @@ class Window:
Window.emoji_font = QFontDatabase.applicationFontFamilies(emoji_font_id)[0]
style = f"""
QWidget {{
background-color: {Config.background_color};
color: {Config.text_color};
font-size: {Config.font_size}px;
}}
""".strip()
QWidget {{
background-color: {Config.background_color};
color: {Config.text_color};
font-size: {Config.font_size}px;
}}
""".strip()
Window.app.setFont(Window.font)
Window.root.setContentsMargins(0, 0, 0, 0)
@@ -139,6 +139,19 @@ class Window:
Window.scroll_area = QScrollArea()
Window.scroll_area.setWidgetResizable(True)
# image_path = str(Config.logo_path)
# image_url = QUrl.fromLocalFile(image_path).toString()
# style = f"""
# QWidget {{
# background-image: url({image_url});
# background-repeat: no-repeat;
# background-position: center;
# }}
# """
# Window.scroll_area.setStyleSheet(style)
container = QWidget()
parent = QVBoxLayout(container)
Window.view = QVBoxLayout()