fix: survive the screen library's sys.exit, copy all modules into the image, fit -10 degree readouts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
ae8c17d8d5
commit
09f78d1a63
8 files changed
+78
-8
No files matched your search
+3
-1
@@ -133,7 +133,9 @@ class WeatherView:
|
||||
temp = weather.temp if weather else None
|
||||
if weather:
|
||||
draw_icon(d, icon_for(weather.code), 20, 182, 56)
|
||||
end = lcdkit.number(d, lcdkit.fmt_temp(temp), 90, 184, 26, 46, 6, 7, ghost=False)
|
||||
text = lcdkit.fmt_temp(temp)
|
||||
w, gap = (26, 7) if len(text) <= 2 else (22, 5) # a third glyph (-10) must stay clear of the divider
|
||||
end = lcdkit.number(d, text, 90, 184, w, 46, 6, gap, ghost=False)
|
||||
if temp is not None:
|
||||
d.ellipse((end + 4, 184, end + 14, 194), outline=INK, width=3)
|
||||
hi = lcdkit.fmt_temp(weather.today_max) if weather else "--"
|
||||
|
||||
Reference in new issue
Block a user