summaryrefslogtreecommitdiff
path: root/src/plugins/fset/fset-config.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-05-19 20:36:22 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-06-25 16:35:27 +0200
commite66b3ffd573f21f9ad860501f940594c4e6fc9fd (patch)
tree2c9fd79c5db13af7ec7af754811da0aaad665d7a /src/plugins/fset/fset-config.c
parentcd131db925c60f96813fc2387a059cf89bf6a375 (diff)
downloadweechat-e66b3ffd573f21f9ad860501f940594c4e6fc9fd.zip
fset: add colors for diff/undef values
Diffstat (limited to 'src/plugins/fset/fset-config.c')
-rw-r--r--src/plugins/fset/fset-config.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c
index 3e71e369d..adc00954d 100644
--- a/src/plugins/fset/fset-config.c
+++ b/src/plugins/fset/fset-config.c
@@ -46,6 +46,8 @@ struct t_config_option *fset_config_color_default_value[2];
struct t_config_option *fset_config_color_name[2];
struct t_config_option *fset_config_color_type[2];
struct t_config_option *fset_config_color_value[2];
+struct t_config_option *fset_config_color_value_diff[2];
+struct t_config_option *fset_config_color_value_undef[2];
char *fset_config_eval_format_option_current = NULL;
@@ -270,6 +272,38 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color, NULL, NULL,
NULL, NULL, NULL);
+ fset_config_color_value_diff[0] = weechat_config_new_option (
+ fset_config_file, ptr_section,
+ "value_diff", "color",
+ N_("color for value different from default"),
+ NULL, 0, 0, "green", NULL, 0,
+ NULL, NULL, NULL,
+ &fset_config_change_color, NULL, NULL,
+ NULL, NULL, NULL);
+ fset_config_color_value_diff[1] = weechat_config_new_option (
+ fset_config_file, ptr_section,
+ "value_diff_selected", "color",
+ N_("color for value different from default on the selected line"),
+ NULL, 0, 0, "lightgreen", NULL, 0,
+ NULL, NULL, NULL,
+ &fset_config_change_color, NULL, NULL,
+ NULL, NULL, NULL);
+ fset_config_color_value_undef[0] = weechat_config_new_option (
+ fset_config_file, ptr_section,
+ "value_undef", "color",
+ N_("color for undefined value"),
+ NULL, 0, 0, "magenta", NULL, 0,
+ NULL, NULL, NULL,
+ &fset_config_change_color, NULL, NULL,
+ NULL, NULL, NULL);
+ fset_config_color_value_undef[1] = weechat_config_new_option (
+ fset_config_file, ptr_section,
+ "value_undef_selected", "color",
+ N_("color for undefined value on the selected line"),
+ NULL, 0, 0, "lightmagenta", NULL, 0,
+ NULL, NULL, NULL,
+ &fset_config_change_color, NULL, NULL,
+ NULL, NULL, NULL);
return 1;
}