Style css
This commit is contained in:
@@ -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())
|
||||
Reference in New Issue
Block a user