mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Removed hack, apply stylesheet from style module
This commit is contained in:
parent
2cc29c73c6
commit
b3e80ce417
1 changed files with 2 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from avalon import api
|
||||
from avalon import api, style
|
||||
from avalon.vendor.Qt import QtGui, QtWidgets
|
||||
|
||||
import avalon.fusion
|
||||
|
|
@ -50,12 +50,8 @@ class FusionSetToolColor(api.InventoryAction):
|
|||
|
||||
"""
|
||||
|
||||
app = QtWidgets.QApplication.instance()
|
||||
widgets = dict((w.objectName(), w) for w in app.allWidgets())
|
||||
widget = widgets.get("SceneInventory")
|
||||
|
||||
color_dialog = QtWidgets.QColorDialog(color)
|
||||
color_dialog.setStyleSheet(widget.styleSheet())
|
||||
color_dialog.setStyleSheet(style.load_stylesheet())
|
||||
|
||||
accepted = color_dialog.exec_()
|
||||
picked_color = color_dialog.selectedColor() if accepted else False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue