Style css

This commit is contained in:
2026-03-03 17:03:11 +01:00
parent 0922014ae8
commit bd984b4f78
4 changed files with 230 additions and 13 deletions

View File

@@ -83,11 +83,16 @@ class MainWindow(QMainWindow):
if __name__ == "__main__":
app = QApplication(sys.argv)
with open('styles.qss', 'r') as f:
style = f.read()
# Set the stylesheet of the application
app.setStyleSheet(style)
# Load and set the global font
custom_font = QFont(load_custom_font(), 16)
if custom_font:
app.setFont(custom_font)
window = MainWindow()
window.show()
sys.exit(app.exec())