From c5b8328bfc674773574f9d2b3174ab37c4620846 Mon Sep 17 00:00:00 2001 From: koffeejava Date: Thu, 12 Mar 2026 21:26:48 -0600 Subject: [PATCH] added time based coloring --- src/icon-list.cr | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/icon-list.cr b/src/icon-list.cr index e6acfad..76ed458 100644 --- a/src/icon-list.cr +++ b/src/icon-list.cr @@ -1,12 +1,21 @@ def icon(id) - orange = "\e[38;5;214m" + gray = "\e[38;5;241m" blue = "\e[38;5;33m" yellow = "\e[38;5;220m" reset = "\e[0m" bold = "\033[1m" + + time = (Time.local.hour.to_s + Time.local.minute.to_s).to_i + + if time > 1200 + orange = "\e[38;5;235m" + else + orange = "\e[38;5;214m" + end + if id == 1000 print "#{bold}#{orange} ⠀⠀⠀⠀⡄⡢⡪⢪⢊⠎⡆⡢⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀