From f6d1b03c18edc210449cb0697e7c2fcce083286d Mon Sep 17 00:00:00 2001 From: xavi Date: Sun, 6 Oct 2024 22:20:13 -0700 Subject: [PATCH] Modified colors for due date --- src/dodo.c | 4 ++-- src/x_curses.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dodo.c b/src/dodo.c index c8d6d5a..281f76c 100644 --- a/src/dodo.c +++ b/src/dodo.c @@ -618,10 +618,10 @@ int set_color_of_date(const char *due_date){ printf("%s", X_GREEN); } else if ( days_until_due_date > 7 ){ - printf("%s", X_CYN); + printf("%s", X_YELLOW); } else if ( days_until_due_date > 3 ){ - printf("%s", X_CYN); + printf("%s", X_YELLOW); } else{ printf("%s", X_RED); diff --git a/src/x_curses.h b/src/x_curses.h index c94065b..5ef3f1d 100644 --- a/src/x_curses.h +++ b/src/x_curses.h @@ -5,6 +5,7 @@ #define X_BOLD "\x1B[1m" #define X_UNDL "\x1B[21m" #define X_CYN "\x1B[36m" +#define X_YELLOW "\x1B[38;5;226m" #define X_GREEN "\x1B[32m" #define X_RED "\x1B[31m" #define X_goup(y) printf("\x1B[%dF", y)