}
/**
- * ci_start_color - Set up the default colours
+ * mutt_color_init - Set up the default colours
*/
-void ci_start_color(void)
+void mutt_color_init(void)
{
memset(ColorDefs, A_NORMAL, sizeof(int) * MT_COLOR_MAX);
ColorQuote = mutt_mem_malloc(COLOR_QUOTE_INIT * sizeof(int));
#endif
/**
- * mutt_alloc_color - Allocate a colour pair
+ * mutt_color_alloc - Allocate a colour pair
* @param fg Foreground colour ID
* @param bg Background colour ID
* @retval num Combined colour pair
*/
-int mutt_alloc_color(uint32_t fg, uint32_t bg)
+int mutt_color_alloc(uint32_t fg, uint32_t bg)
{
#ifdef USE_SLANG_CURSES
char fgc[128], bgc[128];
}
/**
- * mutt_combine_color - Combine two colours
+ * mutt_color_combine - Combine two colours
* @param fg_attr Colour pair of foreground to use
* @param bg_attr Colour pair of background to use
* @retval num Colour pair of combined colour
*/
-int mutt_combine_color(uint32_t fg_attr, uint32_t bg_attr)
+int mutt_color_combine(uint32_t fg_attr, uint32_t bg_attr)
{
uint32_t fg = COLOR_DEFAULT;
uint32_t bg = COLOR_DEFAULT;
if ((fg == COLOR_DEFAULT) && (bg == COLOR_DEFAULT))
return A_NORMAL;
- return mutt_alloc_color(fg, bg);
+ return mutt_color_alloc(fg, bg);
}
/**
mutt_color_free(tmp->fg, tmp->bg);
tmp->fg = fg;
tmp->bg = bg;
- attr |= mutt_alloc_color(fg, bg);
+ attr |= mutt_color_alloc(fg, bg);
}
else
attr |= (tmp->pair & ~A_BOLD);
{
tmp->fg = fg;
tmp->bg = bg;
- attr |= mutt_alloc_color(fg, bg);
+ attr |= mutt_color_alloc(fg, bg);
}
#endif
tmp->pair = attr;
{
#ifdef HAVE_COLOR
if ((fg != COLOR_UNSET) && (bg != COLOR_UNSET))
- return attr | mutt_alloc_color(fg, bg);
+ return attr | mutt_color_alloc(fg, bg);
else
#endif
return attr;
extern struct ColorLineList ColorIndexTagList; ///< List of colours applied to tags in the index
extern struct ColorLineList ColorStatusList; ///< List of colours applied to the status bar
-void ci_start_color(void);
-int mutt_alloc_color(uint32_t fg, uint32_t bg);
-int mutt_combine_color(uint32_t fg_attr, uint32_t bg_attr);
-void mutt_color_free(uint32_t fg, uint32_t bg);
-void mutt_colors_free(void);
+int mutt_color_alloc (uint32_t fg, uint32_t bg);
+int mutt_color_combine(uint32_t fg_attr, uint32_t bg_attr);
+void mutt_color_free (uint32_t fg, uint32_t bg);
+void mutt_color_init (void);
+void mutt_colors_free (void);
enum CommandResult mutt_parse_color (struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
enum CommandResult mutt_parse_mono (struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);