mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
set stylesheet on main windows instead of on application
This commit is contained in:
parent
8aa5b1362d
commit
66761a2544
2 changed files with 6 additions and 4 deletions
|
|
@ -6,9 +6,6 @@ from Qt import QtWidgets, QtGui
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app = QtWidgets.QApplication(sys.argv)
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
|
|
||||||
stylesheet = settings.style.load_stylesheet()
|
|
||||||
app.setStyleSheet(stylesheet)
|
|
||||||
app.setWindowIcon(QtGui.QIcon(settings.style.app_icon_path()))
|
app.setWindowIcon(QtGui.QIcon(settings.style.app_icon_path()))
|
||||||
|
|
||||||
_develop = "-d" in sys.argv or "--develop" in sys.argv
|
_develop = "-d" in sys.argv or "--develop" in sys.argv
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
from Qt import QtWidgets
|
from Qt import QtWidgets, QtGui
|
||||||
from .base import SystemWidget, ProjectWidget
|
from .base import SystemWidget, ProjectWidget
|
||||||
|
from .. import style
|
||||||
|
|
||||||
|
|
||||||
class MainWidget(QtWidgets.QWidget):
|
class MainWidget(QtWidgets.QWidget):
|
||||||
|
|
@ -13,6 +14,10 @@ class MainWidget(QtWidgets.QWidget):
|
||||||
|
|
||||||
self.resize(self.widget_width, self.widget_height)
|
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)
|
header_tab_widget = QtWidgets.QTabWidget(parent=self)
|
||||||
|
|
||||||
studio_widget = SystemWidget(user_role, header_tab_widget)
|
studio_widget = SystemWidget(user_role, header_tab_widget)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue