Added an icon for the new sidebars layout. eric7

Sat, 11 Sep 2021 14:13:50 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 11 Sep 2021 14:13:50 +0200
branch
eric7
changeset 111
f19934855f45
parent 110
ab97aeb5587e
child 112
b287c1d2cc78

Added an icon for the new sidebars layout.

ChangeLog file | annotate | diff | comparison | revisions
PKGLIST file | annotate | diff | comparison | revisions
PluginMqttMonitor.py file | annotate | diff | comparison | revisions
PluginMqttMonitor.zip file | annotate | diff | comparison | revisions
--- a/ChangeLog	Mon Aug 16 16:34:54 2021 +0200
+++ b/ChangeLog	Sat Sep 11 14:13:50 2021 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 1.1.1:
+- added an icon for the new sidebars layout
+
 Version 1.1.0
 - bug fixes
 - added code to support MQTT v5
--- a/PKGLIST	Mon Aug 16 16:34:54 2021 +0200
+++ b/PKGLIST	Sat Sep 11 14:13:50 2021 +0200
@@ -28,4 +28,5 @@
 MqttMonitor/icons/profiles-light.svg
 MqttMonitor/icons/quickopen-dark.svg
 MqttMonitor/icons/quickopen-light.svg
+MqttMonitor/icons/sbMqttMonitor96.svg
 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(
Binary file PluginMqttMonitor.zip has changed

eric ide

mercurial