mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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,
|
BaseClickableFrame,
|
||||||
set_style_property,
|
set_style_property,
|
||||||
)
|
)
|
||||||
|
from openpype.style import get_objected_colors
|
||||||
from openpype.pipeline.create import (
|
from openpype.pipeline.create import (
|
||||||
SUBSET_NAME_ALLOWED_SYMBOLS,
|
SUBSET_NAME_ALLOWED_SYMBOLS,
|
||||||
TaskNotSetError,
|
TaskNotSetError,
|
||||||
|
|
@ -125,9 +126,11 @@ class PublishIconBtn(IconButton):
|
||||||
def __init__(self, pixmap_path, *args, **kwargs):
|
def __init__(self, pixmap_path, *args, **kwargs):
|
||||||
super(PublishIconBtn, self).__init__(*args, **kwargs)
|
super(PublishIconBtn, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
icon = self.generate_icon(pixmap_path,
|
colors = get_objected_colors()
|
||||||
enabled_color=QtCore.Qt.white,
|
icon = self.generate_icon(
|
||||||
disabled_color=QtGui.QColor("#5b6779"))
|
pixmap_path,
|
||||||
|
enabled_color=colors["font"].get_qcolor(),
|
||||||
|
disabled_color=colors["font-disabled"].get_qcolor())
|
||||||
self.setIcon(icon)
|
self.setIcon(icon)
|
||||||
|
|
||||||
def generate_icon(self, pixmap_path, enabled_color, disabled_color):
|
def generate_icon(self, pixmap_path, enabled_color, disabled_color):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue