From afdf4e8782a22566932180224fa1c924d24c810f Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Fri, 23 Aug 2024 23:00:49 +0200 Subject: [PATCH] fix(toolbar): removed hardcoded color values --- bec_widgets/qt_utils/toolbar.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bec_widgets/qt_utils/toolbar.py b/bec_widgets/qt_utils/toolbar.py index 6c3967ef..876da21c 100644 --- a/bec_widgets/qt_utils/toolbar.py +++ b/bec_widgets/qt_utils/toolbar.py @@ -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