diff --git a/appveyor.yml b/appveyor.yml index a99c056..575203c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,7 +32,7 @@ after_build: - pip install -r requirements.txt - ps: cd src - ps: cp ${env:APPVEYOR_BUILD_FOLDER}\target\release\meter.dll libmeter.pyd -- pyinstaller -F -w -i ..\..\assets\albion-stats-icon.ico -r libmeter.pyd meter.py +- pyinstaller -F -w -i ..\..\assets\albion-stats-icon.ico meter.py - ps: deactivate - ps: mv dist\meter.exe ..\..\albion-online-stats.exe - ps: ls diff --git a/gui/src/meter.py b/gui/src/meter.py index 7233ee5..6f8c785 100644 --- a/gui/src/meter.py +++ b/gui/src/meter.py @@ -1,5 +1,4 @@ import sys -import os from PySide2.QtCore import Qt from PySide2.QtWidgets import QApplication @@ -8,6 +7,7 @@ import libmeter from main import MainWidget from engine import initialize +from styling import style if __name__ == "__main__": initialize() @@ -17,8 +17,7 @@ if __name__ == "__main__": app = QApplication(sys.argv) - with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'style.css')) as css: - app.setStyleSheet(css.read()) + app.setStyleSheet(style) geometry = app.screens()[0].size() diff --git a/gui/src/style.css b/gui/src/style.css deleted file mode 100644 index 4ffede7..0000000 --- a/gui/src/style.css +++ /dev/null @@ -1,3 +0,0 @@ -QWidget { - font-size: 10px; -} \ No newline at end of file diff --git a/gui/src/styling.py b/gui/src/styling.py new file mode 100644 index 0000000..3b0e4e9 --- /dev/null +++ b/gui/src/styling.py @@ -0,0 +1,5 @@ +style = """ + QWidget { + font-size: 10px; + } +""" \ No newline at end of file