mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
added more images
This commit is contained in:
parent
779a65521e
commit
0fca397ae2
7 changed files with 44 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
from .icons import (
|
||||
get_icon_path,
|
||||
get_pixmap,
|
||||
get_icon
|
||||
)
|
||||
from .widgets import (
|
||||
SubsetAttributesWidget,
|
||||
PublishOverlayFrame
|
||||
|
|
@ -13,6 +18,10 @@ from .instance_views_widgets import (
|
|||
|
||||
|
||||
__all__ = (
|
||||
"get_icon_path",
|
||||
"get_pixmap",
|
||||
"get_icon",
|
||||
|
||||
"SubsetAttributesWidget",
|
||||
"PublishOverlayFrame",
|
||||
|
||||
|
|
|
|||
35
openpype/tools/new_publisher/widgets/icons.py
Normal file
35
openpype/tools/new_publisher/widgets/icons.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import os
|
||||
|
||||
from Qt import QtGui
|
||||
|
||||
|
||||
def get_icon_path(icon_name=None, filename=None):
|
||||
if icon_name is None and filename is None:
|
||||
return None
|
||||
|
||||
if filename is None:
|
||||
filename = "{}.png".format(icon_name)
|
||||
|
||||
path = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
"images",
|
||||
filename
|
||||
)
|
||||
if os.path.exists(path):
|
||||
return path
|
||||
return None
|
||||
|
||||
|
||||
def get_pixmap(icon_name=None, filename=None):
|
||||
path = get_icon_path(icon_name, filename)
|
||||
if not path:
|
||||
return None
|
||||
|
||||
return QtGui.QPixmap(path)
|
||||
|
||||
|
||||
def get_icon(icon_name=None, filename=None):
|
||||
pix = get_pixmap(icon_name, filename)
|
||||
if not pix:
|
||||
return None
|
||||
return QtGui.QIcon(pix)
|
||||
BIN
openpype/tools/new_publisher/widgets/images/play.png
Normal file
BIN
openpype/tools/new_publisher/widgets/images/play.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1,020 B |
BIN
openpype/tools/new_publisher/widgets/images/refresh.png
Normal file
BIN
openpype/tools/new_publisher/widgets/images/refresh.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
BIN
openpype/tools/new_publisher/widgets/images/stop.png
Normal file
BIN
openpype/tools/new_publisher/widgets/images/stop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 463 B |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
BIN
openpype/tools/new_publisher/widgets/images/validate.png
Normal file
BIN
openpype/tools/new_publisher/widgets/images/validate.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
Loading…
Add table
Add a link
Reference in a new issue