This commit is contained in:
Auric Vente 2024-07-19 19:38:40 -06:00
parent 8219137999
commit d8e7776937
2 changed files with 3 additions and 16 deletions

View File

@ -17,7 +17,7 @@ class Config:
hatched_image_path: Path hatched_image_path: Path
terminated_image_path: Path terminated_image_path: Path
names_json: Path names_json: Path
background_color: str = "#2c2c2c" background_color: str = "rgb(44, 44, 44)"
text_color: str = "#ffffff" text_color: str = "#ffffff"
image_size: int = 80 image_size: int = 80
space_1: int = 20 space_1: int = 20
@ -56,4 +56,4 @@ class Config:
Config.font_path = Config.here / "fonts" / "NotoSans-Regular.ttf" Config.font_path = Config.here / "fonts" / "NotoSans-Regular.ttf"
Config.emoji_font_path = Config.here / "fonts" / "NotoEmoji-Regular.ttf" Config.emoji_font_path = Config.here / "fonts" / "NotoEmoji-Regular.ttf"
Config.song_path = Config.here / "audio" / "March of the Cyber Ants.mp3" Config.song_path = Config.here / "audio" / "March of the Cyber Ants.mp3"
Config.logo_path = Config.here / "img" / "logo_3.jpg" Config.logo_path = Config.here / "img" / "logo_3.jpg"

View File

@ -89,9 +89,9 @@ class Window:
}} }}
""".strip() """.strip()
Window.app.setStyleSheet(style)
Window.app.setFont(Window.font) Window.app.setFont(Window.font)
Window.root.setContentsMargins(0, 0, 0, 0) Window.root.setContentsMargins(0, 0, 0, 0)
Window.app.setStyleSheet(style)
@staticmethod @staticmethod
def add_buttons() -> None: def add_buttons() -> None:
@ -139,19 +139,6 @@ class Window:
Window.scroll_area = QScrollArea() Window.scroll_area = QScrollArea()
Window.scroll_area.setWidgetResizable(True) 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() container = QWidget()
parent = QVBoxLayout(container) parent = QVBoxLayout(container)
Window.view = QVBoxLayout() Window.view = QVBoxLayout()