resize top bar
This commit is contained in:
10
building.py
10
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)
|
||||
|
||||
Reference in New Issue
Block a user