From c3987a54502c840922fb76b42a9302164300c146 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 20 Aug 2021 17:38:10 +0200 Subject: [PATCH] removed overlay from naming --- openpype/style/style.css | 18 +++++++++--------- .../tools/new_publisher/widgets/__init__.py | 4 ++-- .../{overlay_widget.py => publish_widget.py} | 10 +++++----- openpype/tools/new_publisher/window.py | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) rename openpype/tools/new_publisher/widgets/{overlay_widget.py => publish_widget.py} (97%) diff --git a/openpype/style/style.css b/openpype/style/style.css index 06c3c2b555..76a054a292 100644 --- a/openpype/style/style.css +++ b/openpype/style/style.css @@ -675,40 +675,40 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background: transparent; } -#PublishOverlayFrame { +#PublishFrame { background: rgba(0, 0, 0, 127); } -#PublishOverlayFrame[state="1"] { +#PublishFrame[state="1"] { background: rgb(22, 25, 29); } -#PublishOverlay { +#PublishInfoFrame { background: {color:bg}; border: 2px solid black; border-radius: 0.3em; } -#PublishOverlay[state="-1"] { +#PublishInfoFrame[state="-1"] { background: rgb(194, 226, 236); } -#PublishOverlay[state="0"] { +#PublishInfoFrame[state="0"] { background: #AA5050; } -#PublishOverlay[state="1"] { +#PublishInfoFrame[state="1"] { background: #458056; } -#PublishOverlay[state="2"] { +#PublishInfoFrame[state="2"] { background: #ff9900; } -#PublishOverlay QLabel { +#PublishInfoFrame QLabel { color: black; } -#PublishOverlayMainLabel { +#PublishInfoMainLabel { font-size: 12pt; } diff --git a/openpype/tools/new_publisher/widgets/__init__.py b/openpype/tools/new_publisher/widgets/__init__.py index 759160dcde..57434c38c4 100644 --- a/openpype/tools/new_publisher/widgets/__init__.py +++ b/openpype/tools/new_publisher/widgets/__init__.py @@ -6,8 +6,8 @@ from .icons import ( from .widgets import ( SubsetAttributesWidget ) -from .overlay_widget import ( - PublishOverlayFrame +from .publish_widget import ( + PublishFrame ) from .create_dialog import ( CreateDialog diff --git a/openpype/tools/new_publisher/widgets/overlay_widget.py b/openpype/tools/new_publisher/widgets/publish_widget.py similarity index 97% rename from openpype/tools/new_publisher/widgets/overlay_widget.py rename to openpype/tools/new_publisher/widgets/publish_widget.py index c4d53db3d8..0b20da2c24 100644 --- a/openpype/tools/new_publisher/widgets/overlay_widget.py +++ b/openpype/tools/new_publisher/widgets/publish_widget.py @@ -8,16 +8,16 @@ from .icons import get_icon from .validations_widget import ValidationsWidget -class PublishOverlayFrame(QtWidgets.QFrame): +class PublishFrame(QtWidgets.QFrame): hide_requested = QtCore.Signal() def __init__(self, controller, parent): - super(PublishOverlayFrame, self).__init__(parent) + super(PublishFrame, self).__init__(parent) - self.setObjectName("PublishOverlayFrame") + self.setObjectName("PublishFrame") info_frame = QtWidgets.QFrame(self) - info_frame.setObjectName("PublishOverlay") + info_frame.setObjectName("PublishInfoFrame") validation_errors_widget = ValidationsWidget(controller, self) @@ -36,7 +36,7 @@ class PublishOverlayFrame(QtWidgets.QFrame): top_layout.addWidget(hide_btn) main_label = QtWidgets.QLabel(content_widget) - main_label.setObjectName("PublishOverlayMainLabel") + main_label.setObjectName("PublishInfoMainLabel") main_label.setAlignment(QtCore.Qt.AlignCenter) message_label = QtWidgets.QLabel(content_widget) diff --git a/openpype/tools/new_publisher/window.py b/openpype/tools/new_publisher/window.py index 90dfddaa25..ecdfe7960b 100644 --- a/openpype/tools/new_publisher/window.py +++ b/openpype/tools/new_publisher/window.py @@ -30,7 +30,7 @@ from Qt import QtWidgets from openpype import style from control import PublisherController from widgets import ( - PublishOverlayFrame, + PublishFrame, SubsetAttributesWidget, InstanceCardView, InstanceListView, @@ -64,7 +64,7 @@ class PublisherWindow(QtWidgets.QWidget): line_widget.setMinimumHeight(2) # Overlay MUST be created after Main to be painted on top of it - publish_frame = PublishOverlayFrame(controller, self) + publish_frame = PublishFrame(controller, self) # Content # Subset widget