[/trunk] Changeset 151 by mikael
* Add a color for buddies with an unread message.
* Update TODO.
* Update conf. file sample for the new color setting.
--- a/mcabber/mcabberrc.example Thu Apr 28 18:47:43 2005 +0000
+++ b/mcabber/mcabberrc.example Thu Apr 28 19:57:45 2005 +0000
@@ -29,6 +29,10 @@
logging = 1
# logging_dir = /home/mikael/.mcabber/
+# Debug logging
+# If you want advanced debug, please specify a file here.
+# You can enable debug in main.c before compiling mcabber, too.
+# debug = /home/mikael/mcabber.log
# The colors
# NOTE: the following settings may or may not be used currently... :)
@@ -37,8 +41,8 @@
color_background = blue
color_backselected = cyan
color_borderlines = white
-color_jidonlineselected = black
color_jidonline = green
+color_newmsg = red
color_jidofflineselected = red
color_jidoffline = red
color_text = white
--- a/mcabber/src/TODO Thu Apr 28 18:47:43 2005 +0000
+++ b/mcabber/src/TODO Thu Apr 28 19:57:45 2005 +0000
@@ -9,7 +9,6 @@
* Messages in hidden (shrunk) groups are not visible.
Maybe we should create "*_msg_[gs]etflag()" functions, which
would update groups message flags too. (?)
-* Disable dev logging (use a config. option)
TODO:
@@ -18,6 +17,7 @@
* show (how?) we can scroll in roster if not all buddies are displayed
* Get timestamp for offline messages
* /connect /disconnect ?
+* Key bindings (ex: F5 <-> /group toggle)
* Commands! :-)
- /roster <hide_offline|show_offline|top|bottom>
--- a/mcabber/src/screen.c Thu Apr 28 18:47:43 2005 +0000
+++ b/mcabber/src/screen.c Thu Apr 28 19:57:45 2005 +0000
@@ -127,8 +127,8 @@
char *colors[11] = {
"", "",
"borderlines",
- "jidonlineselected",
"jidonline",
+ "newmsg",
"jidofflineselected",
"jidoffline",
"text",
@@ -509,7 +509,10 @@
for (n = 0; n < maxx; n++)
waddch(rosterWnd, ' ');
} else {
- wattrset(rosterWnd, COLOR_PAIR(COLOR_BD_DES));
+ if (buddy_getflags(BUDDATA(buddy)) & ROSTER_FLAG_MSG)
+ wattrset(rosterWnd, COLOR_PAIR(COLOR_NMSG));
+ else
+ wattrset(rosterWnd, COLOR_PAIR(COLOR_BD_DES));
}
strncpy(name, buddy_getname(BUDDATA(buddy)), ROSTER_WIDTH-7);
--- a/mcabber/src/screen.h Thu Apr 28 18:47:43 2005 +0000
+++ b/mcabber/src/screen.h Thu Apr 28 19:57:45 2005 +0000
@@ -3,10 +3,10 @@
#include <ncurses.h>
-#define COLOR_POPUP 1
+//#define COLOR_NMSG 1
#define COLOR_GENERAL 3
-#define COLOR_BD_CONSEL 4
-#define COLOR_BD_CON 5
+//#define COLOR_BD_CON 4
+#define COLOR_NMSG 5
#define COLOR_BD_DESSEL 6
#define COLOR_BD_DES 7