mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 17:23:15 +02:00
core: change default chat colors (issue #1920)
Default values changed: - weechat.color.chat_delimiters: green -> 22 - weechat.color.chat_highlight_bg: magenta -> 124 - weechat.color.chat_inactive_window: default -> 240 - weechat.color.chat_nick_colors: add many colors - weechat.color.chat_nick_offline: default -> 242 - weechat.color.chat_nick_offline_highlight_bg: blue -> 17 - weechat.color.chat_prefix_buffer: brown -> 180 - weechat.color.emphasized_bg: magenta -> 54 - weechat.color.nicklist_away: cyan -> 240
This commit is contained in:
+13
-10
@@ -4087,7 +4087,7 @@ config_weechat_init_options ()
|
||||
weechat_config_file, weechat_config_section_color,
|
||||
"chat_delimiters", "color",
|
||||
N_("text color for delimiters"),
|
||||
NULL, GUI_COLOR_CHAT_DELIMITERS, 0, "green", NULL, 0,
|
||||
NULL, GUI_COLOR_CHAT_DELIMITERS, 0, "22", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_color, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
@@ -4103,7 +4103,7 @@ config_weechat_init_options ()
|
||||
weechat_config_file, weechat_config_section_color,
|
||||
"chat_highlight_bg", "color",
|
||||
N_("background color for highlighted prefix"),
|
||||
NULL, -1, 0, "magenta", NULL, 0,
|
||||
NULL, -1, 0, "124", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_color, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
@@ -4129,7 +4129,7 @@ config_weechat_init_options ()
|
||||
"chat_inactive_window", "color",
|
||||
N_("text color for chat when window is inactive (not current "
|
||||
"selected window)"),
|
||||
NULL, GUI_COLOR_CHAT_INACTIVE_WINDOW, 0, "default", NULL, 0,
|
||||
NULL, GUI_COLOR_CHAT_INACTIVE_WINDOW, 0, "240", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_color, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
@@ -4151,8 +4151,11 @@ config_weechat_init_options ()
|
||||
N_("text color for nicks (comma separated list of colors, "
|
||||
"background 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, 0, 0,
|
||||
"cyan,magenta,green,brown,lightblue,lightcyan,lightmagenta,"
|
||||
"lightgreen,31,35,38,40,49,63,70,80,92,99,112,126,130,138,142,148,"
|
||||
"160,162,167,169,174,176,178,184,186,210,212,215,248",
|
||||
NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_nick_colors, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
@@ -4162,7 +4165,7 @@ config_weechat_init_options ()
|
||||
N_("text color for offline nick (not in nicklist any more); this "
|
||||
"color is used only if option weechat.look.color_nick_offline is "
|
||||
"enabled"),
|
||||
NULL, GUI_COLOR_CHAT_NICK_OFFLINE, 0, "default", NULL, 0,
|
||||
NULL, GUI_COLOR_CHAT_NICK_OFFLINE, 0, "242", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_color, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
@@ -4180,7 +4183,7 @@ config_weechat_init_options ()
|
||||
"chat_nick_offline_highlight_bg", "color",
|
||||
N_("background color for offline nick with highlight; this color is "
|
||||
"used only if option weechat.look.color_nick_offline is enabled"),
|
||||
NULL, -1, 0, "blue", NULL, 0,
|
||||
NULL, -1, 0, "17", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_color, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
@@ -4229,7 +4232,7 @@ config_weechat_init_options ()
|
||||
"chat_prefix_buffer", "color",
|
||||
N_("text color for buffer name (before prefix, when many buffers "
|
||||
"are merged with same number)"),
|
||||
NULL, GUI_COLOR_CHAT_PREFIX_BUFFER, 0, "brown", NULL, 0,
|
||||
NULL, GUI_COLOR_CHAT_PREFIX_BUFFER, 0, "180", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_color, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
@@ -4391,7 +4394,7 @@ config_weechat_init_options ()
|
||||
N_("background color for emphasized text (for example when searching "
|
||||
"text); used only if option weechat.look.emphasized_attributes "
|
||||
"is an empty string (default value)"),
|
||||
NULL, -1, 0, "magenta", NULL, 0,
|
||||
NULL, -1, 0, "54", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_color, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
@@ -4426,7 +4429,7 @@ config_weechat_init_options ()
|
||||
weechat_config_file, weechat_config_section_color,
|
||||
"nicklist_away", "color",
|
||||
N_("text color for away nicknames"),
|
||||
NULL, -1, 0, "cyan", NULL, 0,
|
||||
NULL, -1, 0, "240", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&config_change_color, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
|
||||
@@ -366,24 +366,24 @@ TEST(GuiNick, FindColor)
|
||||
WEE_FIND_COLOR("default", NULL, NULL);
|
||||
WEE_FIND_COLOR("default", "", NULL);
|
||||
|
||||
WEE_FIND_COLOR("lightgreen", "abcdef", NULL);
|
||||
WEE_FIND_COLOR("brown", "abcdefghi", NULL);
|
||||
WEE_FIND_COLOR("212", "abcdef", NULL);
|
||||
WEE_FIND_COLOR("92", "abcdefghi", NULL);
|
||||
|
||||
/* with forced color */
|
||||
config_file_option_set (config_look_nick_color_force,
|
||||
"abcdef:green;abcdefghi:cyan", 1);
|
||||
"abcdef:green;abcdefghi:125", 1);
|
||||
WEE_FIND_COLOR("green", "abcdef", NULL);
|
||||
WEE_FIND_COLOR("cyan", "abcdefghi", NULL);
|
||||
WEE_FIND_COLOR("125", "abcdefghi", NULL);
|
||||
config_file_option_reset (config_look_nick_color_force, 1);
|
||||
|
||||
/* with custom colors */
|
||||
WEE_FIND_COLOR("yellow", "abcdef", "red,blue,yellow,magenta");
|
||||
WEE_FIND_COLOR("blue", "abcdefghi", "red,blue,yellow,magenta");
|
||||
WEE_FIND_COLOR("214", "abcdef", "red,blue,214,magenta");
|
||||
WEE_FIND_COLOR("blue", "abcdefghi", "red,blue,214,magenta");
|
||||
|
||||
/* with forced color and custom colors (forced color is ignored) */
|
||||
config_file_option_set (config_look_nick_color_force,
|
||||
"abcdef:green;abcdefghi:cyan", 1);
|
||||
WEE_FIND_COLOR("yellow", "abcdef", "red,blue,yellow,magenta");
|
||||
WEE_FIND_COLOR("blue", "abcdefghi", "red,blue,yellow,magenta");
|
||||
"abcdef:green;abcdefghi:125", 1);
|
||||
WEE_FIND_COLOR("214", "abcdef", "red,blue,214,magenta");
|
||||
WEE_FIND_COLOR("blue", "abcdefghi", "red,blue,214,magenta");
|
||||
config_file_option_reset (config_look_nick_color_force, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user