mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Use colors from style/data.json
This commit is contained in:
parent
2e3e799f34
commit
d6949754a1
1 changed files with 6 additions and 3 deletions
|
|
@ -16,6 +16,7 @@ from openpype.tools.utils import (
|
|||
BaseClickableFrame,
|
||||
set_style_property,
|
||||
)
|
||||
from openpype.style import get_objected_colors
|
||||
from openpype.pipeline.create import (
|
||||
SUBSET_NAME_ALLOWED_SYMBOLS,
|
||||
TaskNotSetError,
|
||||
|
|
@ -125,9 +126,11 @@ class PublishIconBtn(IconButton):
|
|||
def __init__(self, pixmap_path, *args, **kwargs):
|
||||
super(PublishIconBtn, self).__init__(*args, **kwargs)
|
||||
|
||||
icon = self.generate_icon(pixmap_path,
|
||||
enabled_color=QtCore.Qt.white,
|
||||
disabled_color=QtGui.QColor("#5b6779"))
|
||||
colors = get_objected_colors()
|
||||
icon = self.generate_icon(
|
||||
pixmap_path,
|
||||
enabled_color=colors["font"].get_qcolor(),
|
||||
disabled_color=colors["font-disabled"].get_qcolor())
|
||||
self.setIcon(icon)
|
||||
|
||||
def generate_icon(self, pixmap_path, enabled_color, disabled_color):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue