new colors and informative git commits

This commit is contained in:
2025-06-16 14:15:05 +02:00
parent caec86c5a0
commit 9e2e3bc35b
2 changed files with 21 additions and 10 deletions

View File

@@ -16,7 +16,7 @@
# @input desc: Event description
# @return: Single-line string
function allday(collection, desc) {
return collection " " ITALIC FAINT " (allday) " OFF desc
return collection " " LIGHT_CYAN ITALIC FAINT " (allday) " OFF CYAN desc OFF
}
# Return line for multi-day event, or event that starts at midnight, which ends today.
@@ -26,7 +26,7 @@ function allday(collection, desc) {
# @input desc: Event description
# @return: Single-line string
function endstoday(stop, collection, desc) {
return collection " " CYAN " -- " stop OFF ": " desc
return collection " " LIGHT_CYAN " -- " stop OFF ": " CYAN desc OFF
}
# Return line for event that starts sometime today.
@@ -38,9 +38,9 @@ function endstoday(stop, collection, desc) {
# @return: Single-line string
function slice(start, stop, collection, desc) {
if (stop == "00:00")
return collection " " CYAN start " -- " OFF ": " desc
else
return collection " " CYAN start OFF " -- " CYAN stop OFF ": " desc
return collection " " LIGHT_CYAN start " -- " OFF ": " CYAN desc OFF
else
return collection " " LIGHT_CYAN start OFF " -- " LIGHT_CYAN stop OFF ": " CYAN desc OFF
}
# Print line for a single hour entry.
@@ -75,6 +75,7 @@ function hrlines(start, stop, h, starth, stoph, tmp, i) {
# AWK program
BEGIN {
FS = "|"
LIGHT_CYAN = "\033[1;36m"
CYAN = "\033[1;36m"
ITALIC = "\033[3m"
FAINT = "\033[2m"