commit 6bbfd8993925c09d266f90e608ed1246c903f19e from: Isaac Meerleo date: Mon Jul 27 23:40:05 2026 UTC cappuccinne default styling commit - 5b08f77f4fec3950ac79386cf93a899b5a2108dd commit + 6bbfd8993925c09d266f90e608ed1246c903f19e blob - bce04db6089c5233e9a408ceec150250de346e67 blob + 21685bec4675d51753180a5b9625ff756e78e0da --- src/fugu-tty/ui_palette.c +++ src/fugu-tty/ui_palette.c @@ -22,17 +22,40 @@ void ui_palette_init(void) { short owner_fg, owner_bg; + short base, text, subtext, lavender, mauve, red, peach, green, + sky; start_color(); use_default_colors(); - init_pair(P_HEAD, COLOR_YELLOW, -1); - init_pair(P_CODE, COLOR_CYAN, -1); - init_pair(P_ADD, COLOR_GREEN, -1); - init_pair(P_DEL, COLOR_RED, -1); - init_pair(P_TOOL, COLOR_CYAN, -1); - init_pair(P_ERR, COLOR_RED, -1); - init_pair(P_DIM, COLOR_BLUE, -1); - init_pair(P_TEXT, COLOR_WHITE, -1); + if (COLORS >= 256) { + base = 235; + text = 189; + subtext = 146; + lavender = 183; + mauve = 141; + red = 203; + peach = 215; + green = 156; + sky = 117; + } else { + base = -1; + text = COLOR_WHITE; + subtext = COLOR_BLUE; + lavender = COLOR_YELLOW; + mauve = COLOR_CYAN; + red = COLOR_RED; + peach = COLOR_RED; + green = COLOR_GREEN; + sky = COLOR_CYAN; + } + init_pair(P_HEAD, lavender, base); + init_pair(P_CODE, mauve, base); + init_pair(P_ADD, green, base); + init_pair(P_DEL, red, base); + init_pair(P_TOOL, sky, base); + init_pair(P_ERR, peach, base); + init_pair(P_DIM, subtext, base); + init_pair(P_TEXT, text, base); ui_owner_colors(COLORS, &owner_fg, &owner_bg); init_pair(P_OWNER, owner_fg, owner_bg); } @@ -47,8 +70,8 @@ void ui_owner_colors(int colors, short *fg, short *bg) { if (colors >= 256) { - *fg = 255; /* light foreground */ - *bg = 238; /* dark grey background */ + *fg = 235; + *bg = 183; } else { *fg = COLOR_BLACK; *bg = COLOR_WHITE;