Mods
This commit is contained in:
parent
9e2c382e07
commit
8219137999
|
@ -8,7 +8,7 @@ import appdirs # type: ignore
|
||||||
class Config:
|
class Config:
|
||||||
title: str = "Cromulant"
|
title: str = "Cromulant"
|
||||||
width: int = 900
|
width: int = 900
|
||||||
height: int = 800
|
height: int = 900
|
||||||
max_ants: int = 100
|
max_ants: int = 100
|
||||||
here: Path
|
here: Path
|
||||||
ants_json: Path
|
ants_json: Path
|
||||||
|
@ -37,6 +37,7 @@ class Config:
|
||||||
triumph_message: str = "Scored a triumph"
|
triumph_message: str = "Scored a triumph"
|
||||||
hit_message: str = "Took a hit"
|
hit_message: str = "Took a hit"
|
||||||
song_path: Path
|
song_path: Path
|
||||||
|
logo_path: Path
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def prepare() -> None:
|
def prepare() -> None:
|
||||||
|
@ -55,3 +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"
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 165 KiB |
Binary file not shown.
After Width: | Height: | Size: 188 KiB |
Binary file not shown.
After Width: | Height: | Size: 153 KiB |
Binary file not shown.
After Width: | Height: | Size: 146 KiB |
|
@ -139,6 +139,19 @@ 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()
|
||||||
|
|
Loading…
Reference in New Issue