Mods
This commit is contained in:
parent
8219137999
commit
d8e7776937
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue