mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
added initial styles
This commit is contained in:
parent
f053323d2e
commit
8db22fbb98
3 changed files with 20 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
QTreeView::item {
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue