24 # Start-Of-Header |
24 # Start-Of-Header |
25 name = "MQTT Monitor Plugin" |
25 name = "MQTT Monitor Plugin" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
27 autoactivate = True |
27 autoactivate = True |
28 deactivateable = True |
28 deactivateable = True |
29 version = "1.2.1" |
29 version = "1.2.2" |
30 className = "MqttMonitorPlugin" |
30 className = "MqttMonitorPlugin" |
31 packageName = "MqttMonitor" |
31 packageName = "MqttMonitor" |
32 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" |
32 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" |
33 longDescription = ( |
33 longDescription = ( |
34 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" |
34 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" |
132 |
132 |
133 try: |
133 try: |
134 usesDarkPalette = e5App().usesDarkPalette() |
134 usesDarkPalette = e5App().usesDarkPalette() |
135 except AttributeError: |
135 except AttributeError: |
136 from PyQt5.QtGui import QPalette |
136 from PyQt5.QtGui import QPalette |
137 palette = self.palette() |
137 palette = e5App().palette() |
138 lightness = palette.color(QPalette.Window).lightness() |
138 lightness = palette.color(QPalette.Window).lightness() |
139 usesDarkPalette = lightness <= 128 |
139 usesDarkPalette = lightness <= 128 |
140 if usesDarkPalette: |
140 if usesDarkPalette: |
141 iconSuffix = "dark" |
141 iconSuffix = "dark" |
142 else: |
142 else: |