summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-27 20:44:14 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-27 20:44:14 +0200
commitc78fabde1f572f28e0b1f2f71f358606ac943c01 (patch)
treea0be59adcdc21262d2d742bf479161aa8d928181 /src/core
parentba37b555a3d2c5305196f16e3d07e248ace5c81c (diff)
downloadweechat-c78fabde1f572f28e0b1f2f71f358606ac943c01.zip
Added marker line (or dotted line), more visible than single magenta char (char is still possible)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config.c12
-rw-r--r--src/core/wee-config.h5
2 files changed, 11 insertions, 6 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index d62667351..162d747aa 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -1041,10 +1041,10 @@ config_weechat_init ()
NULL, 0, 0, "%a, %d %b %Y", NULL, NULL, NULL, NULL, NULL, NULL);
config_look_read_marker = config_file_new_option (
weechat_config_file, ptr_section,
- "read_marker", "string",
- N_("use a marker on servers/channels to show first unread "
- "line"),
- NULL, 0, 1, " ", NULL, NULL, &config_change_read_marker, NULL, NULL, NULL);
+ "read_marker", "integer",
+ N_("use a marker (line or char) on buffers to show first unread line"),
+ "none|line|dotted-line|char",
+ 0, 0, "dotted-line", NULL, NULL, &config_change_read_marker, NULL, NULL, NULL);
config_look_input_format = config_file_new_option (
weechat_config_file, ptr_section,
"input_format", "string",
@@ -1280,13 +1280,13 @@ config_weechat_init ()
weechat_config_file, ptr_section,
"chat_read_marker", "color",
N_("text color for unread data marker"),
- NULL, GUI_COLOR_CHAT_READ_MARKER, 0, "yellow",
+ NULL, GUI_COLOR_CHAT_READ_MARKER, 0, "magenta",
NULL, NULL, &config_change_color, NULL, NULL, NULL);
config_color_chat_read_marker_bg = config_file_new_option (
weechat_config_file, ptr_section,
"chat_read_marker_bg", "color",
N_("background color for unread data marker"),
- NULL, -1, 0, "magenta", NULL, NULL, &config_change_color, NULL, NULL, NULL);
+ NULL, -1, 0, "default", NULL, NULL, &config_change_color, NULL, NULL, NULL);
/* status window */
config_color_status = config_file_new_option (
weechat_config_file, ptr_section,
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index c2bc989da..47b81ffb5 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -40,6 +40,11 @@
#define CONFIG_LOOK_HOTLIST_SORT_NUMBER_ASC 4
#define CONFIG_LOOK_HOTLIST_SORT_NUMBER_DESC 5
+#define CONFIG_LOOK_READ_MARKER_NONE 0
+#define CONFIG_LOOK_READ_MARKER_LINE 1
+#define CONFIG_LOOK_READ_MARKER_DOTTED_LINE 2
+#define CONFIG_LOOK_READ_MARKER_CHAR 3
+
extern struct t_config_file *weechat_config_file;
extern struct t_config_section *weechat_config_section_bar;