summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-10-03 17:18:25 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-10-03 17:18:25 +0200
commitdfaa43ff172c481d5e078b6189cb20b829e6f553 (patch)
tree82ebc7cd6ead4b3039c177f425fc56aae97e8cb7 /src
parent01ae24ed082e45482fd57b11d45269a17a37557c (diff)
downloadweechat-dfaa43ff172c481d5e078b6189cb20b829e6f553.zip
Add color for marker on lines where text sought is found
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-config.c14
-rw-r--r--src/core/wee-config.h2
-rw-r--r--src/gui/curses/gui-curses-chat.c2
-rw-r--r--src/gui/curses/gui-curses-color.c1
-rw-r--r--src/gui/gui-color.h1
5 files changed, 19 insertions, 1 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 83a069269..5c721efc9 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -127,6 +127,8 @@ struct t_config_option *config_color_chat_highlight;
struct t_config_option *config_color_chat_highlight_bg;
struct t_config_option *config_color_chat_read_marker;
struct t_config_option *config_color_chat_read_marker_bg;
+struct t_config_option *config_color_chat_text_found;
+struct t_config_option *config_color_chat_text_found_bg;
struct t_config_option *config_color_status;
struct t_config_option *config_color_status_bg;
struct t_config_option *config_color_status_delimiters;
@@ -1312,6 +1314,18 @@ config_weechat_init ()
N_("background color for unread data marker"),
NULL, -1, 0, "default",
NULL, NULL, &config_change_color, NULL, NULL, NULL);
+ config_color_chat_text_found = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "chat_text_found", "color",
+ N_("text color for marker on lines where text sought is found"),
+ NULL, GUI_COLOR_CHAT_TEXT_FOUND, 0, "yellow",
+ NULL, NULL, &config_change_color, NULL, NULL, NULL);
+ config_color_chat_text_found_bg = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "chat_text_found_bg", "color",
+ N_("background color for marker on lines where text sought is found"),
+ NULL, -1, 0, "lightmagenta",
+ 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 dee0e6fe7..38336465c 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -131,6 +131,8 @@ extern struct t_config_option *config_color_chat_highlight;
extern struct t_config_option *config_color_chat_highlight_bg;
extern struct t_config_option *config_color_chat_read_marker;
extern struct t_config_option *config_color_chat_read_marker_bg;
+extern struct t_config_option *config_color_chat_text_found;
+extern struct t_config_option *config_color_chat_text_found_bg;
extern struct t_config_option *config_color_status;
extern struct t_config_option *config_color_status_bg;
extern struct t_config_option *config_color_status_delimiters;
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c
index 9459c8e47..fad732ea9 100644
--- a/src/gui/curses/gui-curses-chat.c
+++ b/src/gui/curses/gui-curses-chat.c
@@ -918,7 +918,7 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line,
window->buffer->text_search_exact))
{
gui_window_set_weechat_color (GUI_CURSES(window)->win_chat,
- GUI_COLOR_CHAT_READ_MARKER);
+ GUI_COLOR_CHAT_TEXT_FOUND);
mvwprintw (GUI_CURSES(window)->win_chat,
read_marker_y, read_marker_x,
"*");
diff --git a/src/gui/curses/gui-curses-color.c b/src/gui/curses/gui-curses-color.c
index 3af277813..e0ace0a4f 100644
--- a/src/gui/curses/gui-curses-color.c
+++ b/src/gui/curses/gui-curses-color.c
@@ -382,6 +382,7 @@ gui_color_init_weechat ()
gui_color_build (GUI_COLOR_CHAT_DELIMITERS, CONFIG_COLOR(config_color_chat_delimiters), CONFIG_COLOR(config_color_chat_bg));
gui_color_build (GUI_COLOR_CHAT_HIGHLIGHT, CONFIG_COLOR(config_color_chat_highlight), CONFIG_COLOR(config_color_chat_highlight_bg));
gui_color_build (GUI_COLOR_CHAT_READ_MARKER, CONFIG_COLOR(config_color_chat_read_marker), CONFIG_COLOR(config_color_chat_read_marker_bg));
+ gui_color_build (GUI_COLOR_CHAT_TEXT_FOUND, CONFIG_COLOR(config_color_chat_text_found), CONFIG_COLOR(config_color_chat_text_found_bg));
gui_color_build (GUI_COLOR_STATUS, CONFIG_COLOR(config_color_status), CONFIG_COLOR(config_color_status_bg));
gui_color_build (GUI_COLOR_STATUS_DELIMITERS, CONFIG_COLOR(config_color_status_delimiters), CONFIG_COLOR(config_color_status_bg));
diff --git a/src/gui/gui-color.h b/src/gui/gui-color.h
index 0bffe5df0..54f3d12f7 100644
--- a/src/gui/gui-color.h
+++ b/src/gui/gui-color.h
@@ -58,6 +58,7 @@ enum t_gui_color_enum
GUI_COLOR_CHAT_DELIMITERS,
GUI_COLOR_CHAT_HIGHLIGHT,
GUI_COLOR_CHAT_READ_MARKER,
+ GUI_COLOR_CHAT_TEXT_FOUND,
GUI_COLOR_STATUS,
GUI_COLOR_STATUS_DELIMITERS,