62 if ((cc->
fg ==
fg) && (cc->
bg ==
bg))
91 if (
index >= COLOR_PAIRS)
95 static bool warned =
false;
105#ifdef NEOMUTT_DIRECT_COLORS
106 int rc = init_extended_pair(
index,
fg,
bg);
Color and attribute parsing.
int32_t color_t
Type for 24-bit colour value.
struct CursesColor * curses_color_new(color_t fg, color_t bg)
Create a new CursesColor.
static int curses_color_init(color_t fg, color_t bg)
Initialise a new Curses colour.
int NumCursesColors
Number of ncurses colours left to allocate.
void curses_color_free(struct CursesColor **ptr)
Free a CursesColor.
struct CursesColorList CursesColors
List of all Curses colours.
void curses_colors_init(void)
Initialise the Curses colours.
struct CursesColor * curses_colors_find(color_t fg, color_t bg)
Find a Curses colour by foreground/background.
void curses_color_dump(struct CursesColor *cc, const char *prefix)
Log one Curses colour.
static int color_debug(enum LogLevel level, const char *format,...)
Convenience wrapper for the gui headers.
@ LL_DEBUG5
Log at debug level 5.
#define MUTT_MEM_CALLOC(n, type)
Convenience wrapper for the library headers.
#define TAILQ_FOREACH(var, head, field)
#define TAILQ_INSERT_TAIL(head, elm, field)
#define TAILQ_REMOVE(head, elm, field)
#define TAILQ_INSERT_BEFORE(listelm, elm, field)
Colour in the ncurses palette.
color_t fg
Foreground colour.
color_t bg
Background colour.
short ref_count
Number of users.