mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(toolbar): removed hardcoded color values
This commit is contained in:
@ -102,16 +102,9 @@ class MaterialIconAction:
|
|||||||
toolbar.addAction(self.action)
|
toolbar.addAction(self.action)
|
||||||
|
|
||||||
def get_icon(self):
|
def get_icon(self):
|
||||||
color = {
|
|
||||||
"dark": "#FFFFFF",
|
|
||||||
"light": "#000000",
|
|
||||||
} # FIXME: This should be a theme color but the toolbar doesn't respect the theme atm
|
|
||||||
# once fixed, change it to
|
|
||||||
# palette = QGuiApplication.palette()
|
|
||||||
# palette.toolTipBase().color()
|
|
||||||
|
|
||||||
icon = material_icon(
|
icon = material_icon(
|
||||||
self.icon_name, size=(20, 20), color=color, convert_to_pixmap=False, filled=self.filled
|
self.icon_name, size=(20, 20), convert_to_pixmap=False, filled=self.filled
|
||||||
)
|
)
|
||||||
return icon
|
return icon
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user