mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
expect values as 'None' and 'QColor'
This commit is contained in:
parent
d15bdd494c
commit
618a76c6af
1 changed files with 4 additions and 1 deletions
|
|
@ -485,7 +485,10 @@ class _IconsCache:
|
|||
parts = [icon_type, icon_def["path"]]
|
||||
|
||||
elif icon_type in {"awesome-font", "material-symbols"}:
|
||||
parts = [icon_type, icon_def["name"], icon_def["color"]]
|
||||
color = icon_def["color"] or ""
|
||||
if isinstance(color, QtGui.QColor):
|
||||
color = color.name()
|
||||
parts = [icon_type, icon_def["name"] or "", color]
|
||||
return "|".join(parts)
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue