From cf10f50229406fd97b5db762f1decbc91546c887 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 2 Jun 2021 12:14:41 +0200 Subject: [PATCH] use object name for separator color instead of hardcoded color in code --- openpype/style/style.css | 5 +++++ openpype/tools/tray/pype_info_widget.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/openpype/style/style.css b/openpype/style/style.css index 78052a9fdd..87df484843 100644 --- a/openpype/style/style.css +++ b/openpype/style/style.css @@ -481,6 +481,11 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background: none; } +/* Globally used names */ +#Separator { + background: {color:bg-menu-separator}; +} + #IconBtn {} /* Project Manager stylesheets */ diff --git a/openpype/tools/tray/pype_info_widget.py b/openpype/tools/tray/pype_info_widget.py index cf4c84301b..f95a31f7c2 100644 --- a/openpype/tools/tray/pype_info_widget.py +++ b/openpype/tools/tray/pype_info_widget.py @@ -295,7 +295,7 @@ class PypeInfoSubWidget(QtWidgets.QWidget): def _create_separator(self): separator_widget = QtWidgets.QWidget(self) - separator_widget.setStyleSheet("background: #222222;") + separator_widget.setObjectName("Separator") separator_widget.setMinimumHeight(2) separator_widget.setMaximumHeight(2) return separator_widget