diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-02-17 14:51:21 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-02-17 14:51:21 +0100 |
commit | 65a609e33eca48ba98754a21cf3163f013f40c79 (patch) | |
tree | 61497fe68eb2c8924714166902d7c204c87300b0 /src/gui/curses/gui-curses-bar-window.c | |
parent | 82d7fca3f7d73789ae27d474e7a2f4212934290a (diff) | |
download | weechat-65a609e33eca48ba98754a21cf3163f013f40c79.zip |
Add attributes for colors ("*": bold, "%": reverse, "_": underline)
Diffstat (limited to 'src/gui/curses/gui-curses-bar-window.c')
-rw-r--r-- | src/gui/curses/gui-curses-bar-window.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c index 98b4b4f66..25ee7fd0d 100644 --- a/src/gui/curses/gui-curses-bar-window.c +++ b/src/gui/curses/gui-curses-bar-window.c @@ -262,10 +262,9 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window, break; case GUI_COLOR_RESET_CHAR: string++; - gui_window_set_custom_color_fg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, - CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG])); - gui_window_set_custom_color_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, - CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG])); + gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, + CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]), + CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG])); gui_window_remove_color_style (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, A_BOLD | A_UNDERLINE | A_REVERSE); break; @@ -564,6 +563,11 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, A_BOLD | A_UNDERLINE | A_REVERSE); wclrtobot (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar); } + else + { + gui_window_remove_color_style (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, + A_BOLD | A_UNDERLINE | A_REVERSE); + } while (x < bar_window->width) { gui_bar_window_print_string (bar_window, filling, |