From 7954343ba34b2fb9c869838046ecec29e2e404f4 Mon Sep 17 00:00:00 2001 From: kdmukai <934746+kdmukai@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:15:12 -0600 Subject: [PATCH 1/4] Reformat and simplify the `SPLASH` --- src/krux/display.py | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/src/krux/display.py b/src/krux/display.py index 93e0c4073..877b116e4 100644 --- a/src/krux/display.py +++ b/src/krux/display.py @@ -52,20 +52,23 @@ ASIAN_MIN_CODEPOINT = 12288 -# Splash will use horizontally-centered text plots. Uses Thin spaces to help with alignment -SPLASH = [ - "██" + THIN_SPACE * 3, - "██" + THIN_SPACE * 3, - "██" + THIN_SPACE * 3, - "██████" + THIN_SPACE * 3, - "██" + THIN_SPACE * 3, - THIN_SPACE + "██" + THIN_SPACE * 2 + "██", - "██" + THIN_SPACE + "██", - "████" + THIN_SPACE, - "██" + THIN_SPACE + "██", - THIN_SPACE + "██" + THIN_SPACE * 2 + "██", - THIN_SPACE * 2 + "██" + THIN_SPACE * 3 + "██", -] +SPLASH_CHAR = "█" +human_friendly_splash = """ + ██ + ██ + ██ +██████ + ██ + ██ ██ + ██ ██ + ████ + ██ ██ + ██ ██ + ██ ██ +""" +# Reformat as a list of strings w/fixed length padding to preserve the shape +# when it's rendered as horizontally centered individual lines. +SPLASH = [f"{row:9}" for row in human_friendly_splash.split("\n") if row != ''] class Display: From 503708439b09720c579ce374468de691a0dd3d4f Mon Sep 17 00:00:00 2001 From: kdmukai <934746+kdmukai@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:16:27 -0600 Subject: [PATCH 2/4] Remove constant used for upcoming screensaver PR. --- src/krux/display.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/krux/display.py b/src/krux/display.py index 877b116e4..532ad1aae 100644 --- a/src/krux/display.py +++ b/src/krux/display.py @@ -52,7 +52,6 @@ ASIAN_MIN_CODEPOINT = 12288 -SPLASH_CHAR = "█" human_friendly_splash = """ ██ ██ From e7897092cda4518633f59a13422ac265c5ba7ff8 Mon Sep 17 00:00:00 2001 From: kdmukai <934746+kdmukai@users.noreply.github.com> Date: Tue, 11 Nov 2025 11:28:06 -0600 Subject: [PATCH 3/4] remove f-string --- src/krux/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/krux/display.py b/src/krux/display.py index 532ad1aae..85563a27c 100644 --- a/src/krux/display.py +++ b/src/krux/display.py @@ -67,7 +67,7 @@ """ # Reformat as a list of strings w/fixed length padding to preserve the shape # when it's rendered as horizontally centered individual lines. -SPLASH = [f"{row:9}" for row in human_friendly_splash.split("\n") if row != ''] +SPLASH = ["{:9}".format(row) for row in human_friendly_splash.split("\n") if row != ''] class Display: From 3b385bdd1074f8562f5121fdba5e4cd1c993446b Mon Sep 17 00:00:00 2001 From: kdmukai <934746+kdmukai@users.noreply.github.com> Date: Tue, 11 Nov 2025 11:30:46 -0600 Subject: [PATCH 4/4] More standard(?) formatting syntax --- src/krux/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/krux/display.py b/src/krux/display.py index 85563a27c..a2a30ca79 100644 --- a/src/krux/display.py +++ b/src/krux/display.py @@ -67,7 +67,7 @@ """ # Reformat as a list of strings w/fixed length padding to preserve the shape # when it's rendered as horizontally centered individual lines. -SPLASH = ["{:9}".format(row) for row in human_friendly_splash.split("\n") if row != ''] +SPLASH = ["{:<9}".format(row) for row in human_friendly_splash.split("\n") if row != ''] class Display: