63 if ((cc->
fg ==
fg) && (cc->
bg ==
bg))
93 if (
index >= COLOR_PAIRS)
97 static bool warned =
false;
107#ifdef NEOMUTT_DIRECT_COLORS
108 int rc = init_extended_pair(
index,
fg,
bg);
Color private Module data.
Color and attribute parsing.
Convenience wrapper for the core headers.
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.
void curses_color_free(struct CursesColor **ptr)
Free a CursesColor.
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 FREE(x)
Free memory and set the pointer to NULL.
#define MUTT_MEM_CALLOC(n, type)
@ MODULE_ID_COLOR
ModuleColor, Color
Convenience wrapper for the library headers.
void * neomutt_get_module_data(struct NeoMutt *n, enum ModuleId id)
Get the private data for a Module.
#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)
Color private Module data.
int num_curses_colors
Number of ncurses colours left to allocate.
struct CursesColorList curses_colors
List of all Curses colours.
Colour in the ncurses palette.
color_t fg
Foreground colour.
color_t bg
Background colour.
short ref_count
Number of users.
Container for Accounts, Notifications.