improvenment to color managenment

This commit is contained in:
nova
2025-05-10 23:33:27 +02:00
parent 882e6fc85f
commit 7f0e65eaf3
5 changed files with 82 additions and 52 deletions

View File

@ -32,9 +32,9 @@ void window_top(WINDOW *win){
status |= STATUS_UPDATE_SCREEN_0;
} else {
for (i = 0; i < top_width; i++) {
mvwprintw(win, 0, i, "%c", top_content[i]);
}
wattron(win, COLOR_PAIR(COLOR_PATH));
mvwprintw(win, i, 0, "%s", top_content);
wattroff(win, COLOR_PAIR(COLOR_PATH));
pthread_mutex_unlock(&mutex_top);
}
}