Nice job ya gungus
This commit is contained in:
parent
c96bab9d37
commit
9851a9adeb
1 changed files with 5 additions and 4 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue