dashboard: remove debug grid lines and item borders from render
This commit is contained in:
@@ -207,15 +207,8 @@ def render_full(items: list, widgets: list, fonts: dict) -> Image.Image:
|
||||
img = Image.new("RGB", (DISPLAY_W, DISPLAY_H), BG)
|
||||
draw = ImageDraw.Draw(img)
|
||||
|
||||
# Outer grid lines (subtle)
|
||||
for c in range(1, 4):
|
||||
draw.line((c * 200, 0, c * 200, 480), fill=FG, width=1)
|
||||
draw.line((0, c * 120, 800, c * 120), fill=FG, width=1)
|
||||
|
||||
for item, widget in zip(items, widgets):
|
||||
px, py, pw, ph = item.pixels()
|
||||
# Cell border
|
||||
draw.rectangle((px, py, px + pw - 1, py + ph - 1), outline=FG, width=2)
|
||||
if widget is None:
|
||||
draw.text((px + 8, py + 8), f"#{item.id[:6]} (no plugin)",
|
||||
font=fonts.get("16", fonts.get("default")), fill=FG)
|
||||
|
||||
Reference in New Issue
Block a user