added initial styles

This commit is contained in:
iLLiCiTiT 2021-05-13 17:56:05 +02:00
parent f053323d2e
commit 8db22fbb98
3 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import os
from openpype import resources
def load_stylesheet():
style_path = os.path.join(os.path.dirname(__file__), "style.css")
with open(style_path, "r") as style_file:
stylesheet = style_file.read()
return stylesheet
def app_icon_path():
return resources.pype_icon_filepath()

View file

@ -0,0 +1,5 @@
QTreeView::item {
padding-top: 3px;
padding-bottom: 3px;
padding-right: 3px;
}

View file

@ -7,6 +7,7 @@ from . import (
HierarchySelectionModel,
HierarchyView
)
from .style import load_stylesheet
from avalon.api import AvalonMongoDB
@ -87,6 +88,7 @@ class Window(QtWidgets.QWidget):
self.message_label = message_label
self.resize(1200, 600)
self.setStyleSheet(load_stylesheet())
self.refresh_projects()