Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/screen.c @ 2028:7b5bd6ad83b4
Add 'color_log' (text color in the log window)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 11 Oct 2012 22:44:34 +0200 |
parents | db8ec238cd2c |
children | ca40744c03be |
line wrap: on
line diff
--- a/mcabber/mcabber/screen.c Sat Aug 25 15:42:34 2012 +0200 +++ b/mcabber/mcabber/screen.c Thu Oct 11 22:44:34 2012 +0200 @@ -61,7 +61,7 @@ #include "xmpp.h" #include "main.h" -#define get_color(col) (COLOR_PAIR(col)|COLOR_ATTRIB[col]) +#define get_color(col) (COLOR_PAIR(col)|COLOR_ATTRIB[col]) #define compose_color(col) (COLOR_PAIR(col->color_pair)|col->color_attrib) #define DEFAULT_LOG_WIN_HEIGHT (5+2) @@ -432,6 +432,7 @@ "msgout", "msghl", "status", + "log", "roster", "rostersel", "rosterselmsg", @@ -492,6 +493,10 @@ init_pair(i+1, ((color) ? find_color(color) : COLOR_WHITE), find_color(backstatus)); break; + case COLOR_LOG: + init_pair(i+1, ((color) ? find_color(color) : COLOR_WHITE), + find_color(background)); + break; case COLOR_ROSTER: init_pair(i+1, ((color) ? find_color(color) : COLOR_GREEN), find_color(background)); @@ -799,6 +804,7 @@ settings_set_guard("color_msghl", scr_color_guard); settings_set_guard("color_bgstatus", scr_color_guard); settings_set_guard("color_status", scr_color_guard); + settings_set_guard("color_log", scr_color_guard); settings_set_guard("color_roster", scr_color_guard); settings_set_guard("color_bgrostersel", scr_color_guard); settings_set_guard("color_rostersel", scr_color_guard); @@ -1624,6 +1630,8 @@ wbkgd(logWnd, get_color(COLOR_GENERAL)); wbkgd(chatstatusWnd, get_color(COLOR_STATUS)); wbkgd(mainstatusWnd, get_color(COLOR_STATUS)); + + wattrset(logWnd, get_color(COLOR_LOG)); } else { /* Resize/move windows */ wresize(rosterWnd, CHAT_WIN_HEIGHT, Roster_Width);