Mercurial > ~mikael > mcabber > hg
diff mcabber/src/screen.h @ 1272:033576acac4c
Add configurable roster colors (Michal 'vorner' Vaner)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 21 Aug 2007 20:49:03 +0200 |
parents | dbc907b2d92f |
children | c33b5b6fbf08 |
line wrap: on
line diff
--- a/mcabber/src/screen.h Mon Aug 20 21:30:16 2007 +0200 +++ b/mcabber/src/screen.h Tue Aug 21 20:49:03 2007 +0200 @@ -48,6 +48,25 @@ COLOR_ROSTERNMSG, COLOR_INFO, COLOR_MSGIN, + //Foreground color on usual backgroud + //curses do not allow telling color only -> + //needs colorpairs + COLOR_BLACK_FG, + COLOR_RED_FG, + COLOR_GREEN_FG, + COLOR_YELLOW_FG, + COLOR_BLUE_FG, + COLOR_MAGENTA_FG, + COLOR_CYAN_FG, + COLOR_WHITE_FG, + COLOR_BLACK_BOLD_FG, + COLOR_RED_BOLD_FG, + COLOR_GREEN_BOLD_FG, + COLOR_YELLOW_BOLD_FG, + COLOR_BLUE_BOLD_FG, + COLOR_MAGENTA_BOLD_FG, + COLOR_CYAN_BOLD_FG, + COLOR_WHITE_BOLD_FG, COLOR_max }; @@ -139,6 +158,8 @@ void scr_RosterUnreadMessage(int); void scr_RosterJumpAlternate(void); void scr_BufferScrollUpDown(int updown, unsigned int nblines); +bool scr_RosterColor(const char *status, const char *wildcard, const char *color); +void scr_RosterClearColor(void); #ifdef DEBUG_ENABLE void scr_BufferList(void);