more colour and layout adjustments

This commit is contained in:
thirdr 2023-02-27 10:54:35 +00:00
parent 36458436bc
commit b762ee8861
2 changed files with 7 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def launcher():
graphics.clear()
graphics.set_pen(0)
graphics.set_pen(5)
graphics.set_pen(graphics.create_pen(255, 215, 0))
graphics.rectangle(0, 0, WIDTH, 50)
graphics.set_pen(0)
title = "Launcher"

View File

@ -138,6 +138,9 @@ def draw():
if feed:
# Title
graphics.set_pen(graphics.create_pen(200, 0, 0))
graphics.rectangle(0, 0, WIDTH, 40)
graphics.set_pen(1)
graphics.text("Headlines from BBC News:", 10, 10, 320, 3)
graphics.set_pen(4)
@ -155,6 +158,9 @@ def draw():
code.set_text(feed[1]["guid"])
draw_qr_code(10, 265, 100, code)
graphics.set_pen(graphics.create_pen(200, 0, 0))
graphics.rectangle(0, HEIGHT - 20, WIDTH, 20)
else:
graphics.set_pen(4)
graphics.rectangle(0, (HEIGHT // 2) - 20, WIDTH, 40)