more colour and layout adjustments
This commit is contained in:
parent
36458436bc
commit
b762ee8861
|
@ -40,7 +40,7 @@ def launcher():
|
||||||
graphics.clear()
|
graphics.clear()
|
||||||
graphics.set_pen(0)
|
graphics.set_pen(0)
|
||||||
|
|
||||||
graphics.set_pen(5)
|
graphics.set_pen(graphics.create_pen(255, 215, 0))
|
||||||
graphics.rectangle(0, 0, WIDTH, 50)
|
graphics.rectangle(0, 0, WIDTH, 50)
|
||||||
graphics.set_pen(0)
|
graphics.set_pen(0)
|
||||||
title = "Launcher"
|
title = "Launcher"
|
||||||
|
|
|
@ -138,6 +138,9 @@ def draw():
|
||||||
if feed:
|
if feed:
|
||||||
|
|
||||||
# Title
|
# 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.text("Headlines from BBC News:", 10, 10, 320, 3)
|
||||||
|
|
||||||
graphics.set_pen(4)
|
graphics.set_pen(4)
|
||||||
|
@ -155,6 +158,9 @@ def draw():
|
||||||
code.set_text(feed[1]["guid"])
|
code.set_text(feed[1]["guid"])
|
||||||
draw_qr_code(10, 265, 100, code)
|
draw_qr_code(10, 265, 100, code)
|
||||||
|
|
||||||
|
graphics.set_pen(graphics.create_pen(200, 0, 0))
|
||||||
|
graphics.rectangle(0, HEIGHT - 20, WIDTH, 20)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
graphics.set_pen(4)
|
graphics.set_pen(4)
|
||||||
graphics.rectangle(0, (HEIGHT // 2) - 20, WIDTH, 40)
|
graphics.rectangle(0, (HEIGHT // 2) - 20, WIDTH, 40)
|
||||||
|
|
Loading…
Reference in New Issue