mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
use colors from style data
This commit is contained in:
parent
7a18d3d85e
commit
fec7df18f1
1 changed files with 3 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ import os
|
|||
import uuid
|
||||
from Qt import QtWidgets, QtCore, QtGui
|
||||
|
||||
from openpype.style import get_objected_colors
|
||||
from openpype.lib import (
|
||||
run_subprocess,
|
||||
is_oiio_supported,
|
||||
|
|
@ -37,9 +38,8 @@ class ThumbnailWidget(QtWidgets.QWidget):
|
|||
super(ThumbnailWidget, self).__init__(parent)
|
||||
self.setAcceptDrops(True)
|
||||
|
||||
# TODO remove hardcoded colors
|
||||
border_color = QtGui.QColor(67, 74, 86)
|
||||
thumbnail_bg_color = QtGui.QColor(54, 61, 72)
|
||||
border_color = get_objected_colors("bg-buttons").get_qcolor()
|
||||
thumbnail_bg_color = get_objected_colors("border").get_qcolor()
|
||||
|
||||
default_image = get_image("thumbnail")
|
||||
default_pix = paint_image_with_color(default_image, border_color)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue