summaryrefslogtreecommitdiff
path: root/src/core/wee-config.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-09-24 11:28:33 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-09-24 11:28:33 +0200
commitfb5d40951c3cb8611d42816b71fee6e6cee4413d (patch)
treeac7e4979cd05118d2b5fbf2d47f1c92f5c3c7b1f /src/core/wee-config.c
parent7998e60498107430423a05485b818d41e8dce3bd (diff)
downloadweechat-fb5d40951c3cb8611d42816b71fee6e6cee4413d.zip
core: add new option weechat.look.color_basic_force_bold, off by default: bold is used only if terminal has less than 16 colors (patch #7621)
Diffstat (limited to 'src/core/wee-config.c')
-rw-r--r--src/core/wee-config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 588aeaea2..db32bdbe4 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -85,6 +85,7 @@ struct t_config_option *config_look_bar_more_up;
struct t_config_option *config_look_bar_more_down;
struct t_config_option *config_look_buffer_notify_default;
struct t_config_option *config_look_buffer_time_format;
+struct t_config_option *config_look_color_basic_force_bold;
struct t_config_option *config_look_color_inactive_window;
struct t_config_option *config_look_color_inactive_buffer;
struct t_config_option *config_look_color_inactive_time;
@@ -1653,6 +1654,13 @@ config_weechat_init_options ()
"\"${color}\", for example french time: "
"\"${lightblue}%H${white}%M${lightred}%S\""),
NULL, 0, 0, "%H:%M:%S", NULL, 0, NULL, NULL, &config_change_buffer_time_format, NULL, NULL, NULL);
+ config_look_color_basic_force_bold = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "color_basic_force_bold", "boolean",
+ N_("force \"bold\" attribute for light colors and \"darkgray\" in "
+ "basic colors; off by default: \"bold\" is used only if terminal "
+ "has less than 16 colors"),
+ NULL, 0, 0, "off", NULL, 0, NULL, NULL, &config_change_color, NULL, NULL, NULL);
config_look_color_inactive_window = config_file_new_option (
weechat_config_file, ptr_section,
"color_inactive_window", "boolean",