mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:23:13 +02:00
core: add horizontal separator between windows, two new options to toggle horizontal/vertical separators between windows
New boolean options, enabled by default: - weechat.look.window_separator_horizontal - weechat.look.window_separator_vertical
This commit is contained in:
+19
-6
@@ -153,6 +153,8 @@ struct t_config_option *config_look_separator_horizontal;
|
||||
struct t_config_option *config_look_separator_vertical;
|
||||
struct t_config_option *config_look_set_title;
|
||||
struct t_config_option *config_look_time_format;
|
||||
struct t_config_option *config_look_window_separator_horizontal;
|
||||
struct t_config_option *config_look_window_separator_vertical;
|
||||
|
||||
/* config, colors section */
|
||||
|
||||
@@ -2203,16 +2205,17 @@ config_weechat_init_options ()
|
||||
config_look_separator_horizontal = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"separator_horizontal", "string",
|
||||
N_("char used to draw horizontal separators around bars (empty value "
|
||||
"will draw a real line with ncurses, but may cause bugs with URL "
|
||||
"selection under some terminals), wide chars are NOT allowed here"),
|
||||
N_("char used to draw horizontal separators around bars and windows "
|
||||
"(empty value will draw a real line with ncurses, but may cause bugs "
|
||||
"with URL selection under some terminals), wide chars are NOT "
|
||||
"allowed here"),
|
||||
NULL, 0, 0, "-", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
|
||||
config_look_separator_vertical = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"separator_vertical", "string",
|
||||
N_("char used to draw vertical separators around bars (empty value "
|
||||
"will draw a real line with ncurses), wide chars are NOT allowed "
|
||||
"here"),
|
||||
N_("char used to draw vertical separators around bars and windows "
|
||||
"(empty value will draw a real line with ncurses), wide chars are "
|
||||
"NOT allowed here"),
|
||||
NULL, 0, 0, "", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
|
||||
config_look_set_title = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
@@ -2226,6 +2229,16 @@ config_weechat_init_options ()
|
||||
N_("time format for dates converted to strings and displayed in "
|
||||
"messages"),
|
||||
NULL, 0, 0, "%a, %d %b %Y %T", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
config_look_window_separator_horizontal = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"window_separator_horizontal", "boolean",
|
||||
N_("display an horizontal separator between windows"),
|
||||
NULL, 0, 0, "on", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
|
||||
config_look_window_separator_vertical = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"window_separator_vertical", "boolean",
|
||||
N_("display a vertical separator between windows"),
|
||||
NULL, 0, 0, "on", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
|
||||
|
||||
/* palette */
|
||||
ptr_section = config_file_new_section (weechat_config_file, "palette",
|
||||
|
||||
@@ -176,6 +176,8 @@ extern struct t_config_option *config_look_separator_horizontal;
|
||||
extern struct t_config_option *config_look_separator_vertical;
|
||||
extern struct t_config_option *config_look_set_title;
|
||||
extern struct t_config_option *config_look_time_format;
|
||||
extern struct t_config_option *config_look_window_separator_horizontal;
|
||||
extern struct t_config_option *config_look_window_separator_vertical;
|
||||
|
||||
extern struct t_config_option *config_color_separator;
|
||||
extern struct t_config_option *config_color_bar_more;
|
||||
|
||||
Reference in New Issue
Block a user