diff --git a/openpype/style/style.css b/openpype/style/style.css index 576a0008eb..9af5e2b575 100644 --- a/openpype/style/style.css +++ b/openpype/style/style.css @@ -164,6 +164,40 @@ QComboBox::down-arrow, QComboBox::down-arrow:on, QComboBox::down-arrow:hover, QC image: url(:/openpype/images/combobox_arrow.png); } +/* Splitter */ +QSplitter { + border: 0px; +} + +QSplitter::handle { + border: 1px dashed {color:bg-view}; +} + +QSplitter::handle:hover { + background: {color:bg-menu-separator}; + border: 1px solid {color:bg-view}; +} + +QSplitter::handle:horizontal { + width: 1px; + background-color: transparent; +} + +QSplitter::handle:vertical { + height: 1px; + background-color: transparent; +} + +QSplitter::handle:vertical:hover { + background: {color:bg-menu-separator}; + border: 1px solid {color:bg-view}; +} + +QSplitter::handle:horizontal:hover { + background: {color:bg-menu-separator}; + border: 1px solid {color:bg-view}; +} + /* SLider */ QSlider::groove { border: 1px solid #464b54; @@ -542,3 +576,17 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { #IconView[mode="icon"]::icon { top: 3px; } + +/* Standalone publisher */ +#ComponentList { + outline: none; +} + +#ComponentItem { + background: transparent; +} + +#ComponentFrame { + border: 1px solid {color:border}; + border-radius: 0.1em; +} diff --git a/openpype/tools/standalonepublish/app.py b/openpype/tools/standalonepublish/app.py index 7d25a8ca55..1fd00526ce 100644 --- a/openpype/tools/standalonepublish/app.py +++ b/openpype/tools/standalonepublish/app.py @@ -10,7 +10,7 @@ from .widgets import ( AssetWidget, FamilyWidget, ComponentsWidget, ShadowWidget ) from .widgets.constants import HOST_NAME -from avalon import style +from openpype import style from openpype.api import resources from avalon.api import AvalonMongoDB from openpype.modules import ModulesManager diff --git a/openpype/tools/standalonepublish/widgets/widget_component_item.py b/openpype/tools/standalonepublish/widgets/widget_component_item.py index 3850d68b96..186c8024db 100644 --- a/openpype/tools/standalonepublish/widgets/widget_component_item.py +++ b/openpype/tools/standalonepublish/widgets/widget_component_item.py @@ -16,6 +16,9 @@ class ComponentItem(QtWidgets.QFrame): def __init__(self, parent, main_parent): super().__init__() + + self.setObjectName("ComponentItem") + self.has_valid_repre = True self.actions = [] self.resize(290, 70) @@ -32,6 +35,7 @@ class ComponentItem(QtWidgets.QFrame): # Main widgets frame = QtWidgets.QFrame(self) + frame.setObjectName("ComponentFrame") frame.setFrameShape(QtWidgets.QFrame.StyledPanel) frame.setFrameShadow(QtWidgets.QFrame.Raised) diff --git a/openpype/tools/standalonepublish/widgets/widget_components_list.py b/openpype/tools/standalonepublish/widgets/widget_components_list.py index 4e502a2e5f..0ee90ae4de 100644 --- a/openpype/tools/standalonepublish/widgets/widget_components_list.py +++ b/openpype/tools/standalonepublish/widgets/widget_components_list.py @@ -5,6 +5,8 @@ class ComponentsList(QtWidgets.QTableWidget): def __init__(self, parent=None): super().__init__(parent=parent) + self.setObjectName("ComponentList") + self._main_column = 0 self.setColumnCount(1)