Modified colors for due date

This commit is contained in:
xavi 2024-10-06 22:20:13 -07:00
parent e9119c2981
commit f6d1b03c18
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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)