From b762ee886117e85da2a4eb02c0724e6a7e22f3ce Mon Sep 17 00:00:00 2001 From: thirdr Date: Mon, 27 Feb 2023 10:54:35 +0000 Subject: [PATCH] more colour and layout adjustments --- micropython/examples/inky_frame/inkylauncher/main.py | 2 +- .../examples/inky_frame/inkylauncher/news_headlines.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/micropython/examples/inky_frame/inkylauncher/main.py b/micropython/examples/inky_frame/inkylauncher/main.py index 1ed250fdb..d7a8e1b76 100644 --- a/micropython/examples/inky_frame/inkylauncher/main.py +++ b/micropython/examples/inky_frame/inkylauncher/main.py @@ -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" diff --git a/micropython/examples/inky_frame/inkylauncher/news_headlines.py b/micropython/examples/inky_frame/inkylauncher/news_headlines.py index 268caab6d..f6e01ce02 100644 --- a/micropython/examples/inky_frame/inkylauncher/news_headlines.py +++ b/micropython/examples/inky_frame/inkylauncher/news_headlines.py @@ -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)