From 69eacb4f1759d4c1f20e8446fe258ea983f83f2c Mon Sep 17 00:00:00 2001 From: Ozzy Date: Thu, 6 Feb 2025 14:28:48 +0000 Subject: [PATCH] resize top bar --- building.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/building.py b/building.py index 4c0390c..71a1098 100644 --- a/building.py +++ b/building.py @@ -45,19 +45,19 @@ def draw_image(): # Draw the top bar draw.rectangle((0, 0, 400, 300), fill=white) - draw.rectangle((0, 0, 400, 40), fill=black) + draw.rectangle((0, 0, 400, 30), fill=black) # Add the clock timeStr = strftime("%H:%M", time.localtime()) - draw.text((10, 10), timeStr, white, fontSmall) + draw.text((10, 5), timeStr, white, fontSmall) # Add indoor tempriture - draw.text((350, 10), "19c", white, fontSmall) + draw.text((350, 5), "19c", white, fontSmall) # Add sections ep = 5 - draw.rounded_rectangle((ep, 40+ep, (400/2)-ep, 300-ep), 10, outline=black) - draw.rounded_rectangle(((400/2) + ep, 40+ep, 400-ep, 300-ep), 10, outline=black) + draw.rounded_rectangle((ep, 30+ep, (400/2)-ep, 300-ep), 10, outline=black, width=2) + draw.rounded_rectangle(((400/2) + ep, 30+ep, 400-ep, 300-ep), 10, outline=black, width=2) # Add tasks draw.text((15, 50), 'Tasks', black, fontTitle)