From 3896aec56c13db06d89735a246642c3e783cd9a8 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Mon, 3 Nov 2025 14:32:21 +0100 Subject: [PATCH] use the widget in publisher --- client/ayon_core/tools/publisher/widgets/__init__.py | 3 +++ client/ayon_core/tools/publisher/widgets/comment_input.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client/ayon_core/tools/publisher/widgets/__init__.py b/client/ayon_core/tools/publisher/widgets/__init__.py index 87a5f3914a..38f89c78d0 100644 --- a/client/ayon_core/tools/publisher/widgets/__init__.py +++ b/client/ayon_core/tools/publisher/widgets/__init__.py @@ -11,6 +11,7 @@ from .widgets import ( PublishBtn, CreateNextPageOverlay, ) +from .comment_input import CommentInput from .help_widget import ( HelpButton, HelpDialog, @@ -33,6 +34,8 @@ __all__ = ( "PublishBtn", "CreateNextPageOverlay", + "CommentInput", + "HelpButton", "HelpDialog", diff --git a/client/ayon_core/tools/publisher/widgets/comment_input.py b/client/ayon_core/tools/publisher/widgets/comment_input.py index 003f847a33..6a60f663bd 100644 --- a/client/ayon_core/tools/publisher/widgets/comment_input.py +++ b/client/ayon_core/tools/publisher/widgets/comment_input.py @@ -6,6 +6,7 @@ from qtpy import QtCore, QtWidgets from ayon_core.style import load_stylesheet from ayon_core.tools.utils import ( BaseClickableFrame, + PlaceholderLineEdit, get_qt_icon, get_qt_app, PixmapLabel, @@ -367,7 +368,9 @@ class CommentInput(QtWidgets.QWidget): def __init__(self, parent=None): super().__init__(parent) - text_input = QtWidgets.QLineEdit(self) + text_input = PlaceholderLineEdit(self) + text_input.setObjectName("PublishCommentInput") + text_input.setPlaceholderText("Attach a comment to your publish") floating_hints_widget = FloatingHintWidget(self)