set stylesheet on main windows instead of on application

This commit is contained in:
iLLiCiTiT 2020-12-11 12:51:26 +01:00
parent 8aa5b1362d
commit 66761a2544
2 changed files with 6 additions and 4 deletions

View file

@ -6,9 +6,6 @@ from Qt import QtWidgets, QtGui
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
stylesheet = settings.style.load_stylesheet()
app.setStyleSheet(stylesheet)
app.setWindowIcon(QtGui.QIcon(settings.style.app_icon_path()))
_develop = "-d" in sys.argv or "--develop" in sys.argv

View file

@ -1,5 +1,6 @@
from Qt import QtWidgets
from Qt import QtWidgets, QtGui
from .base import SystemWidget, ProjectWidget
from .. import style
class MainWidget(QtWidgets.QWidget):
@ -13,6 +14,10 @@ class MainWidget(QtWidgets.QWidget):
self.resize(self.widget_width, self.widget_height)
stylesheet = style.load_stylesheet()
self.setStyleSheet(stylesheet)
self.setWindowIcon(QtGui.QIcon(style.app_icon_path()))
header_tab_widget = QtWidgets.QTabWidget(parent=self)
studio_widget = SystemWidget(user_role, header_tab_widget)