From 1378b7100ae860b73969e2fba7e0932d20025c63 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Fri, 28 Nov 2025 21:59:00 +0100 Subject: [PATCH] feat: improve day selection list --- src/lib/aoc.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lib/aoc.lua b/src/lib/aoc.lua index 3a93e09..da64644 100644 --- a/src/lib/aoc.lua +++ b/src/lib/aoc.lua @@ -56,33 +56,36 @@ local function printStats(stats, selected) local date = {day=day, month=START_DATE.month, year=START_DATE.year} term.setTextColor(colors.lightBlue) if selected == day then + term.setBackgroundColor(colors.gray) write("- ") else + term.setBackgroundColor(colors.black) write(" ") end if not dates.isBefore(date, today) then term.setTextColor(colors.white) else - term.setTextColor(colors.gray) + term.setTextColor(colors.lightGray) end write(string.format("Day %2s ", day)) if value.puzzle1 then term.setTextColor(colors.orange) stars = stars + 1 else - term.setTextColor(colors.gray) + term.setTextColor(colors.lightGray) end write("\x04") if value.puzzle2 then term.setTextColor(colors.orange) stars = stars + 1 else - term.setTextColor(colors.gray) + term.setTextColor(colors.lightGray) end write("\x04") term.setTextColor(colors.white) - print() + print(" ") end + term.setBackgroundColor(colors.black) term.setTextColor(colors.white) write(string.format("You have %d", stars))