1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

core: add option weechat.color.status_nicklist_count (closes #109, closes #110)

This commit is contained in:
Sébastien Helleu
2014-07-12 08:13:58 +02:00
parent b168a43070
commit f80a80204a
22 changed files with 121 additions and 25 deletions
+7
View File
@@ -230,6 +230,7 @@ struct t_config_option *config_color_status_data_private;
struct t_config_option *config_color_status_filter;
struct t_config_option *config_color_status_name;
struct t_config_option *config_color_status_name_ssl;
struct t_config_option *config_color_status_nicklist_count;
struct t_config_option *config_color_status_number;
struct t_config_option *config_color_status_more;
struct t_config_option *config_color_status_time;
@@ -3105,6 +3106,12 @@ config_weechat_init_options ()
"secured with a protocol like SSL"),
NULL, -1, 0, "lightgreen", NULL, 0,
NULL, NULL, &config_change_color, NULL, NULL, NULL);
config_color_status_nicklist_count = config_file_new_option (
weechat_config_file, ptr_section,
"status_nicklist_count", "color",
N_("text color for number of nicks in nicklist (status bar)"),
NULL, -1, 0, "default", NULL, 0,
NULL, NULL, &config_change_color, NULL, NULL, NULL);
config_color_status_number = config_file_new_option (
weechat_config_file, ptr_section,
"status_number", "color",
+1
View File
@@ -265,6 +265,7 @@ extern struct t_config_option *config_color_status_data_private;
extern struct t_config_option *config_color_status_filter;
extern struct t_config_option *config_color_status_name;
extern struct t_config_option *config_color_status_name_ssl;
extern struct t_config_option *config_color_status_nicklist_count;
extern struct t_config_option *config_color_status_number;
extern struct t_config_option *config_color_status_more;
extern struct t_config_option *config_color_status_time;
+3 -1
View File
@@ -1170,7 +1170,9 @@ gui_bar_item_default_buffer_nicklist_count (void *data,
if (!buffer || !buffer->nicklist)
return NULL;
snprintf (str_count, sizeof (str_count), "%d",
snprintf (str_count, sizeof (str_count),
"%s%d",
gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_status_nicklist_count))),
buffer->nicklist_visible_count);
return strdup (str_count);