mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
added image for clear thumbnail button and use pixmap button
This commit is contained in:
parent
01279cc6fd
commit
bbaf811df9
3 changed files with 9 additions and 1 deletions
BIN
openpype/tools/publisher/widgets/images/clear_thumbnail.png
Normal file
BIN
openpype/tools/publisher/widgets/images/clear_thumbnail.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
|
|
@ -17,6 +17,7 @@ from openpype.lib.transcoding import (
|
|||
|
||||
from openpype.tools.utils import (
|
||||
paint_image_with_color,
|
||||
PixmapButton,
|
||||
)
|
||||
from openpype.tools.publisher.control import CardMessageTypes
|
||||
|
||||
|
|
@ -292,7 +293,13 @@ class ThumbnailWidget(QtWidgets.QWidget):
|
|||
buttons_widget = QtWidgets.QWidget(self)
|
||||
buttons_widget.setAttribute(QtCore.Qt.WA_TranslucentBackground)
|
||||
|
||||
clear_button = QtWidgets.QPushButton("x", buttons_widget)
|
||||
icon_color = get_objected_colors("bg-view-selection").get_qcolor()
|
||||
icon_color.setAlpha(255)
|
||||
clear_image = get_image("clear_thumbnail")
|
||||
clear_pix = paint_image_with_color(clear_image, icon_color)
|
||||
|
||||
clear_button = PixmapButton(clear_pix, buttons_widget)
|
||||
clear_button.setObjectName("PixmapHoverButton")
|
||||
|
||||
buttons_layout = QtWidgets.QHBoxLayout(buttons_widget)
|
||||
buttons_layout.setContentsMargins(3, 3, 3, 3)
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ class PublishIconBtn(IconButton):
|
|||
- error : other error happened
|
||||
- success : publishing finished
|
||||
"""
|
||||
|
||||
def __init__(self, pixmap_path, *args, **kwargs):
|
||||
super(PublishIconBtn, self).__init__(*args, **kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue