diff --git a/gui/src/meter.py b/gui/src/meter.py index 0db15a6..7233ee5 100644 --- a/gui/src/meter.py +++ b/gui/src/meter.py @@ -1,4 +1,5 @@ import sys +import os from PySide2.QtCore import Qt from PySide2.QtWidgets import QApplication @@ -10,18 +11,14 @@ from engine import initialize if __name__ == "__main__": initialize() - + WIDTH = 256 HEIGHT = 200 app = QApplication(sys.argv) - app.setStyleSheet(""" - QWidget{ - font-size: 10px; - } - - """) + with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'style.css')) as css: + app.setStyleSheet(css.read()) geometry = app.screens()[0].size() diff --git a/gui/src/style.css b/gui/src/style.css new file mode 100644 index 0000000..adcd634 --- /dev/null +++ b/gui/src/style.css @@ -0,0 +1,3 @@ +QWidget{ + font-size: 10px; +} \ No newline at end of file