From 9851a9adebc7a5d70503b8e3c93509a698f1b9e5 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 6 Jan 2024 10:22:38 -0500 Subject: [PATCH] Nice job ya gungus --- py/hexagram/cluster.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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):