diff options
author | James Booth <boothj5@gmail.com> | 2018-03-07 21:37:29 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2018-03-07 21:37:29 +0000 |
commit | be8ff9fdcdc162f41c3b8871e549db2428f72964 (patch) | |
tree | 1fd2d52d26138354ea1a64e2a5f17f99090176c5 | |
parent | 105c9c2943987f89c0429e300e4b6587f975dbb5 (diff) | |
download | profani-tty-be8ff9fdcdc162f41c3b8871e549db2428f72964.tar.gz |
Set background in _status_bar_draw
-rw-r--r-- | src/ui/statusbar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/statusbar.c b/src/ui/statusbar.c index 50cb1a0e..54c4995c 100644 --- a/src/ui/statusbar.c +++ b/src/ui/statusbar.c @@ -89,7 +89,6 @@ status_bar_init(void) int row = screen_statusbar_row(); int cols = getmaxx(stdscr); statusbar_win = newwin(1, cols, row, 0); - wbkgd(statusbar_win, theme_attrs(THEME_STATUS_TEXT)); _status_bar_draw(); @@ -153,7 +152,7 @@ status_bar_resize(void) int row = screen_statusbar_row(); mvwin(statusbar_win, row, 0); wresize(statusbar_win, 1, cols); - wbkgd(statusbar_win, theme_attrs(THEME_STATUS_TEXT)); + _status_bar_draw(); // int cols = getmaxx(stdscr); @@ -492,6 +491,8 @@ status_bar_clear_message(void) static void _status_bar_draw(void) { + wbkgd(statusbar_win, theme_attrs(THEME_STATUS_TEXT)); + char *time_pref = prefs_get_string(PREF_TIME_STATUSBAR); if (g_strcmp0(time_pref, "off") != 0) { if (statusbar->time) { |