diff --git a/py/hexagram/cluster.py b/py/hexagram/cluster.py index e4efdbf..e4d4bd5 100644 --- a/py/hexagram/cluster.py +++ b/py/hexagram/cluster.py @@ -144,11 +144,12 @@ class AmbientTemp(TextGauge): cr.move_to(text_x_offset, self.y) cr.show_text(text) - icon_y_offset = abs(self.icon.height - self.FONT_SIZE) * 2 + if self.value <= self.COLD_THRESHOLD: + icon_y_offset = abs(self.icon.height - self.FONT_SIZE) * 2 - self.icon.draw(cr, - text_x_offset + width - self.icon.width, - self.y - icon_y_offset) + self.icon.draw(cr, + text_x_offset + width - self.icon.width, + self.y - icon_y_offset) class Clock(TextGauge): def __init__(self, x: float, y: float, align: Align):