diff --git a/source/carla_shared.py b/source/carla_shared.py index ae59f0a65..7a3d151be 100644 --- a/source/carla_shared.py +++ b/source/carla_shared.py @@ -1949,10 +1949,17 @@ class PluginWidget(QFrame): self.fColorBottom = QColor(47, 47, 47) self.fColorSeprtr = QColor(70, 70, 70) + if self.palette().window().color().lightness() > 100: + # Light background + labelColor = "333" + else: + # Dark background + labelColor = "BBB" + self.setStyleSheet(""" QLabel#label_name { - color: #BBB; - }""") + color: #%s; + }""" % labelColor) # Colorify #if self.m_pluginInfo['category'] == PLUGIN_CATEGORY_SYNTH: