Mods
This commit is contained in:
parent
65493f96e9
commit
c717ee955d
|
@ -28,6 +28,7 @@ class Config:
|
|||
hatch_burst: int = 3
|
||||
font_size: int = 20
|
||||
footer_font_size: int = 18
|
||||
footer_background_color: str = "#424242"
|
||||
|
||||
@staticmethod
|
||||
def prepare() -> None:
|
||||
|
|
|
@ -67,6 +67,7 @@ class Window:
|
|||
style = f"QWidget {{ background-color: {Config.background_color}; \
|
||||
color: {Config.text_color}; font-size: {Config.font_size}px}}"
|
||||
|
||||
Window.root.setContentsMargins(0, 0, 0, 0)
|
||||
Window.app.setStyleSheet(style)
|
||||
|
||||
@staticmethod
|
||||
|
@ -166,10 +167,13 @@ class Window:
|
|||
|
||||
@staticmethod
|
||||
def add_footer() -> None:
|
||||
root = QWidget()
|
||||
root.setStyleSheet(f"background-color: {Config.footer_background_color};")
|
||||
layout = QHBoxLayout()
|
||||
Window.info = QLabel("---")
|
||||
Window.info.setWordWrap(True)
|
||||
Window.info.setStyleSheet(f"font-size: {Config.footer_font_size}px;")
|
||||
Window.expand(Window.info)
|
||||
layout.addWidget(Window.info)
|
||||
Window.root.addLayout(layout)
|
||||
root.setLayout(layout)
|
||||
Window.root.addWidget(root)
|
||||
|
|
Loading…
Reference in New Issue