mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Return QColor instead of hex string
This commit is contained in:
parent
a43d0f06b5
commit
481ffb6e13
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import sys
|
||||
|
||||
from avalon.vendor.Qt import QtGui
|
||||
import avalon.fusion
|
||||
|
||||
|
||||
|
|
@ -58,7 +59,6 @@ def get_additional_data(container):
|
|||
if tile_color is None:
|
||||
return container
|
||||
|
||||
tile_color.pop("__flags", None)
|
||||
rgb = {key: clamp(value) for key, value in tile_color.items()}
|
||||
|
||||
return {"color": "#{R:02x}{G:02x}{B:02x}".format(**rgb)}
|
||||
return {"color": QtGui.QColor(clamp(tile_color["R"]),
|
||||
clamp(tile_color["G"]),
|
||||
clamp(tile_color["B"]))}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue