Mercurial > hg
changeset 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 | 107d39cd968b |
children | ca40744c03be |
files | mcabber/mcabber/screen.c mcabber/mcabber/screen.h mcabber/mcabberrc.example |
diffstat | 3 files changed, 12 insertions(+), 1 deletions(-) [+] |
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);
--- a/mcabber/mcabber/screen.h Sat Aug 25 15:42:34 2012 +0200 +++ b/mcabber/mcabber/screen.h Thu Oct 11 22:44:34 2012 +0200 @@ -43,6 +43,7 @@ COLOR_MSGOUT, COLOR_MSGHL, COLOR_STATUS, + COLOR_LOG, COLOR_ROSTER, COLOR_ROSTERSEL, COLOR_ROSTERSELNMSG,
--- a/mcabber/mcabberrc.example Sat Aug 25 15:42:34 2012 +0200 +++ b/mcabber/mcabberrc.example Thu Oct 11 22:44:34 2012 +0200 @@ -391,6 +391,7 @@ # msghl: text color in the chat window for highlighted messages (MUC) # bgstatus: background color of the status lines # status: text color of the status lines +# log: text color in the log window # roster: text color of the roster (buddylist) normal items # bgrostersel: background color of the selected roster item # rostersel: text color of the selected roster item @@ -405,6 +406,7 @@ #set color_msghl = yellow #set color_bgstatus = blue #set color_status = white +#set color_log = white #set color_roster = green #set color_bgrostersel = cyan #set color_rostersel = blue