Skip to content

Commit

Permalink
correct color names
Browse files Browse the repository at this point in the history
The actual value (5,2,1)/5 didn't match peach fuzz (255,190,152)/255
but the rather closest color is Tomato (255,99,71)/255.

The T_DARKER_ORANGE is poorly defined but its value (3,1,0)/5 matches
approximately the X11 color Saddle Brown (139,69,19)/255.
  • Loading branch information
MartinPulec committed Oct 21, 2024
1 parent 98975b3 commit 72ac724
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,8 @@ void print_version()
is_release = false;
}
#endif
col() << SBOLD(S256_FG(T_PEACH_FUZZ, PACKAGE_STRING <<

col() << SBOLD(S256_FG(T_TOMATO, PACKAGE_STRING <<
(is_release ? "" : "+"))) <<
" (" << get_version_details() << ")\n";
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ print_fps(const char *prefix, steady_clock::time_point *t0, int *frames,
const char *fps_col = fps_perc >= MIN_FPS_PERC_WARN ? ""
: fps_perc >= MIN_FPS_PERC_WARN2
? T256_FG_SYM(T_ARCTIC_LIME)
: T256_FG_SYM(T_DARKER_ORANGE);
: T256_FG_SYM(T_SADDLE_BROWN);
log_msg(LOG_LEVEL_INFO,
TERM_BOLD TERM_BG_BLACK TERM_FG_BRIGHT_GREEN
"%s" TERM_RESET " %d frames in %g seconds = " TERM_BOLD
Expand Down
4 changes: 2 additions & 2 deletions src/utils/color_out.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
#define TERM_BG_BLACK "\033[40m"
#define TERM_BG_RESET "\033[49m"
// 256 color palette
#define T_DARKER_ORANGE 130 // (3,1,0)
#define T_SADDLE_BROWN 130 // (3,1,0)
#define T_ARCTIC_LIME 190 // (4,5,0)
#define T_PEACH_FUZZ 209 // (5,2,1)
#define T_TOMATO 209 // (5,2,1)
#define T256_FG_SYM(col) "\033[38;5;" STRINGIFY(col) "m"
#define T256_FG(col, x) T256_FG_SYM(col) x TERM_FG_RESET
#define S256_FG(col, x) T256_FG(col, << x <<)
Expand Down

0 comments on commit 72ac724

Please sign in to comment.