This commit is contained in:
Auric Vente 2024-07-19 00:58:07 -06:00
parent 2b965b3435
commit dce647cced
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,8 @@ class Config:
loop_delay_normal: int = 20_000 loop_delay_normal: int = 20_000
loop_delay_slow: int = 60_000 loop_delay_slow: int = 60_000
hatch_burst: int = 3 hatch_burst: int = 3
font_size: int = 20
footer_font_size: int = 18
@staticmethod @staticmethod
def prepare() -> None: def prepare() -> None:

View File

@ -65,7 +65,7 @@ class Window:
Window.window.setWindowIcon(QIcon(str(Config.icon_path))) Window.window.setWindowIcon(QIcon(str(Config.icon_path)))
style = f"QWidget {{ background-color: {Config.background_color}; \ style = f"QWidget {{ background-color: {Config.background_color}; \
color: {Config.text_color}; font-size: 20px}}" color: {Config.text_color}; font-size: {Config.font_size}px}}"
Window.app.setStyleSheet(style) Window.app.setStyleSheet(style)
@ -169,6 +169,7 @@ class Window:
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.expand(Window.info) Window.expand(Window.info)
layout.addWidget(Window.info) layout.addWidget(Window.info)
Window.root.addLayout(layout) Window.root.addLayout(layout)