This commit is contained in:
Auric Vente 2024-07-19 01:18:28 -06:00
parent 65493f96e9
commit c717ee955d
2 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@ class Config:
hatch_burst: int = 3 hatch_burst: int = 3
font_size: int = 20 font_size: int = 20
footer_font_size: int = 18 footer_font_size: int = 18
footer_background_color: str = "#424242"
@staticmethod @staticmethod
def prepare() -> None: def prepare() -> None:

View File

@ -67,6 +67,7 @@ class Window:
style = f"QWidget {{ background-color: {Config.background_color}; \ style = f"QWidget {{ background-color: {Config.background_color}; \
color: {Config.text_color}; font-size: {Config.font_size}px}}" color: {Config.text_color}; font-size: {Config.font_size}px}}"
Window.root.setContentsMargins(0, 0, 0, 0)
Window.app.setStyleSheet(style) Window.app.setStyleSheet(style)
@staticmethod @staticmethod
@ -166,10 +167,13 @@ class Window:
@staticmethod @staticmethod
def add_footer() -> None: def add_footer() -> None:
root = QWidget()
root.setStyleSheet(f"background-color: {Config.footer_background_color};")
layout = QHBoxLayout() layout = QHBoxLayout()
Window.info = QLabel("---") Window.info = QLabel("---")
Window.info.setWordWrap(True) Window.info.setWordWrap(True)
Window.info.setStyleSheet(f"font-size: {Config.footer_font_size}px;") Window.info.setStyleSheet(f"font-size: {Config.footer_font_size}px;")
Window.expand(Window.info) Window.expand(Window.info)
layout.addWidget(Window.info) layout.addWidget(Window.info)
Window.root.addLayout(layout) root.setLayout(layout)
Window.root.addWidget(root)