mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 02:33:12 +02:00
Add color for marker on lines where text sought is found
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
"*");
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user