summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-05-01 20:12:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-05-01 20:12:56 +0200
commitb8f9b83500ce3d9acdb78d3cb6439734b1d01898 (patch)
tree11602f7aac30da4e22e06cd65ae097bd12a1a4c5 /src/core
parent5c245af669781c7d3c79bb9dad0a2d208d266391 (diff)
downloadweechat-b8f9b83500ce3d9acdb78d3cb6439734b1d01898.zip
core: add options weechat.color.chat_status_disabled and weechat.color.chat_status_enabled (issue #1820)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config.c18
-rw-r--r--src/core/wee-config.h2
2 files changed, 20 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 748392f6f..c88759afa 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -255,6 +255,8 @@ struct t_config_option *config_color_chat_prefix_suffix = NULL;
struct t_config_option *config_color_chat_read_marker = NULL;
struct t_config_option *config_color_chat_read_marker_bg = NULL;
struct t_config_option *config_color_chat_server = NULL;
+struct t_config_option *config_color_chat_status_disabled = NULL;
+struct t_config_option *config_color_chat_status_enabled = NULL;
struct t_config_option *config_color_chat_tags = NULL;
struct t_config_option *config_color_chat_text_found = NULL;
struct t_config_option *config_color_chat_text_found_bg = NULL;
@@ -4318,6 +4320,22 @@ config_weechat_init_options ()
NULL, NULL, NULL,
&config_change_color, NULL, NULL,
NULL, NULL, NULL);
+ config_color_chat_status_disabled = config_file_new_option (
+ weechat_config_file, weechat_config_section_color,
+ "chat_status_disabled", "color",
+ N_("text color for \"disabled\" status"),
+ NULL, GUI_COLOR_CHAT_STATUS_DISABLED, 0, "red", NULL, 0,
+ NULL, NULL, NULL,
+ &config_change_color, NULL, NULL,
+ NULL, NULL, NULL);
+ config_color_chat_status_enabled = config_file_new_option (
+ weechat_config_file, weechat_config_section_color,
+ "chat_status_enabled", "color",
+ N_("text color for \"enabled\" status"),
+ NULL, GUI_COLOR_CHAT_STATUS_ENABLED, 0, "green", NULL, 0,
+ NULL, NULL, NULL,
+ &config_change_color, NULL, NULL,
+ NULL, NULL, NULL);
config_color_chat_tags = config_file_new_option (
weechat_config_file, weechat_config_section_color,
"chat_tags", "color",
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index e9f901201..230158a8b 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -302,6 +302,8 @@ extern struct t_config_option *config_color_chat_prefix_suffix;
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_server;
+extern struct t_config_option *config_color_chat_status_disabled;
+extern struct t_config_option *config_color_chat_status_enabled;
extern struct t_config_option *config_color_chat_tags;
extern struct t_config_option *config_color_chat_text_found;
extern struct t_config_option *config_color_chat_text_found_bg;