heater grid: smaller temp column if power is not displaying close #1200

This commit is contained in:
alfrix
2023-12-22 00:17:38 -03:00
parent db12a134e2
commit 02ba0f9594
2 changed files with 8 additions and 0 deletions

View File

@@ -190,5 +190,9 @@ class ScreenPanel:
if dev in self.labels:
self.labels[dev].set_label(new_label_text)
if show_power:
self.labels[dev].get_style_context().add_class("heater-grid-temp-power")
else:
self.labels[dev].get_style_context().remove_class("heater-grid-temp-power")
elif dev in self.devices:
self.devices[dev]["temp"].get_child().set_label(new_label_text)