1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

Remove old and unused color options

This commit is contained in:
Sebastien Helleu
2008-11-19 20:53:56 +01:00
parent 33daa4bc55
commit 1dc33f57e2
22 changed files with 453 additions and 835 deletions
+25 -11
View File
@@ -713,7 +713,7 @@ gui_bar_item_default_input_search (void *data, struct t_gui_bar_item *item,
(window->buffer->text_search_found
|| !window->buffer->input_buffer
|| !window->buffer->input_buffer[0]) ?
gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_input))) :
GUI_COLOR_CUSTOM_BAR_FG :
gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_input_text_not_found))),
ptr_message);
}
@@ -1188,19 +1188,33 @@ gui_bar_item_default_buffer_nicklist (void *data, struct t_gui_bar_item *item,
strcat (buf, " ");
}
}
config_file_search_with_string (ptr_nick->prefix_color,
NULL, NULL, &ptr_option,
NULL);
if (ptr_option)
strcat (buf, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(ptr_option))));
if (strchr (ptr_nick->prefix_color, '.'))
{
config_file_search_with_string (ptr_nick->prefix_color,
NULL, NULL, &ptr_option,
NULL);
if (ptr_option)
strcat (buf, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(ptr_option))));
}
else
{
strcat (buf, gui_color_get_custom (ptr_nick->prefix_color));
}
str_prefix[0] = ptr_nick->prefix;
str_prefix[1] = '\0';
strcat (buf, str_prefix);
config_file_search_with_string (ptr_nick->color,
NULL, NULL, &ptr_option,
NULL);
if (ptr_option)
strcat (buf, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(ptr_option))));
if (strchr (ptr_nick->color, '.'))
{
config_file_search_with_string (ptr_nick->color,
NULL, NULL, &ptr_option,
NULL);
if (ptr_option)
strcat (buf, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(ptr_option))));
}
else
{
strcat (buf, gui_color_get_custom (ptr_nick->color));
}
strcat (buf, ptr_nick->name);
}
else
+13 -13
View File
@@ -1697,9 +1697,9 @@ gui_bar_create_default_input ()
"vertical", /* filling_left_right */
"1", /* size */
"0", /* size_max */
gui_color_get_name (CONFIG_COLOR(config_color_input)),
gui_color_get_name (CONFIG_COLOR(config_color_input_delimiters)),
gui_color_get_name (CONFIG_COLOR(config_color_input_bg)),
"default", /* color fg */
"cyan", /* color delim */
"default", /* color bg */
"0", /* separators */
buf)) /* items */
{
@@ -1736,9 +1736,9 @@ gui_bar_create_default_title ()
"vertical" , /* filling_left_right */
"1", /* size */
"0", /* size_max */
gui_color_get_name (CONFIG_COLOR(config_color_title)),
gui_color_get_name (CONFIG_COLOR(config_color_title)),
gui_color_get_name (CONFIG_COLOR(config_color_title_bg)),
"default", /* color fg */
"cyan", /* color delim */
"blue", /* color bg */
"0", /* separators */
gui_bar_item_names[GUI_BAR_ITEM_BUFFER_TITLE])) /* items */
{
@@ -1797,9 +1797,9 @@ gui_bar_create_default_status ()
"vertical", /* filling_left_right */
"1", /* size */
"0", /* size_max */
gui_color_get_name (CONFIG_COLOR(config_color_status)),
gui_color_get_name (CONFIG_COLOR(config_color_status_delimiters)),
gui_color_get_name (CONFIG_COLOR(config_color_status_bg)),
"default", /* color fg */
"cyan", /* color delim */
"blue", /* color bg */
"0", /* separators */
buf)) /* items */
{
@@ -1835,10 +1835,10 @@ gui_bar_create_default_nicklist ()
"vertical", /* filling_left_right */
"0", /* size */
"0", /* size_max */
gui_color_get_name (CONFIG_COLOR(config_color_nicklist)),
gui_color_get_name (CONFIG_COLOR(config_color_nicklist)),
gui_color_get_name (CONFIG_COLOR(config_color_nicklist_bg)),
"1", /* separators */
"default", /* color fg */
"cyan", /* color delim */
"default", /* color bg */
"1", /* separators */
gui_bar_item_names[GUI_BAR_ITEM_BUFFER_NICKLIST])) /* items */
{
gui_chat_printf (NULL, _("Bar \"%s\" created"),