0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 11:11:49 +02:00

fix(toolbar): removed hardcoded color values

This commit is contained in:
2024-08-23 23:00:49 +02:00
parent 2a82032644
commit afdf4e8782

View File

@ -102,16 +102,9 @@ class MaterialIconAction:
toolbar.addAction(self.action)
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(
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