1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

Replace char "/" by ":" to specify background in nick colors

This commit is contained in:
Sebastien Helleu
2011-02-22 19:33:44 +01:00
parent 17ae0dc592
commit b4ccd82a9d
17 changed files with 52 additions and 36 deletions
+3 -1
View File
@@ -1889,8 +1889,10 @@ config_weechat_init_options ()
config_color_chat_nick_colors = config_file_new_option (
weechat_config_file, ptr_section,
"chat_nick_colors", "string",
/* TRANSLATORS: please do not translate "lightred:blue" */
N_("text color for nicks (comma separated list of colors, background "
"is allowed with format: \"fg/bg\", for example: \"blue/red\")"),
"is allowed with format: \"fg:bg\", for example: "
"\"lightred:blue\")"),
NULL, 0, 0, "cyan,magenta,green,brown,lightblue,default,lightcyan,"
"lightmagenta,lightgreen,blue", NULL, 0,
NULL, NULL, &config_change_nick_colors, NULL, NULL, NULL);
+1 -1
View File
@@ -264,7 +264,7 @@ gui_color_get_custom (const char *color_name)
pos_delim = strchr (ptr_color_name, ',');
if (!pos_delim)
pos_delim = strchr (ptr_color_name, '/');
pos_delim = strchr (ptr_color_name, ':');
if (pos_delim)
{
if (pos_delim == ptr_color_name)