diff -r ab97aeb5587e -r f19934855f45 PluginMqttMonitor.py --- a/PluginMqttMonitor.py Mon Aug 16 16:34:54 2021 +0200 +++ b/PluginMqttMonitor.py Sat Sep 11 14:13:50 2021 +0200 @@ -26,7 +26,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "1.1.0" +version = "1.1.1" className = "MqttMonitorPlugin" packageName = "MqttMonitor" shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" @@ -178,11 +178,14 @@ iconSuffix = "dark" if usesDarkPalette else "light" self.__widget = MqttMonitorWidget(self, usesDarkPalette) + if self.__ui.getLayoutType() == "Sidebars": + iconName = "sbMqttMonitor96" + else: + iconName = "mqtt22-{0}".format(iconSuffix) self.__ui.addSideWidget( self.__ui.RightSide, self.__widget, UI.PixmapCache.getIcon( - os.path.join("MqttMonitor", "icons", - "mqtt22-{0}".format(iconSuffix))), + os.path.join("MqttMonitor", "icons", iconName)), self.tr("MQTT Monitor")) self.__activateAct = EricAction(