Nice job ya gungus

This commit is contained in:
XANTRONIX Development 2024-01-06 10:22:38 -05:00
parent c96bab9d37
commit 9851a9adeb

View file

@ -144,11 +144,12 @@ class AmbientTemp(TextGauge):
cr.move_to(text_x_offset, self.y) cr.move_to(text_x_offset, self.y)
cr.show_text(text) 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, self.icon.draw(cr,
text_x_offset + width - self.icon.width, text_x_offset + width - self.icon.width,
self.y - icon_y_offset) self.y - icon_y_offset)
class Clock(TextGauge): class Clock(TextGauge):
def __init__(self, x: float, y: float, align: Align): def __init__(self, x: float, y: float, align: Align):