mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Merge branch 'statusbar' into winbuffers
This commit is contained in:
commit
78b0388b6c
@ -191,8 +191,8 @@ _ui_resize(const int ch, const char * const input, const int size)
|
|||||||
{
|
{
|
||||||
log_info("Resizing UI");
|
log_info("Resizing UI");
|
||||||
title_bar_resize();
|
title_bar_resize();
|
||||||
status_bar_resize();
|
|
||||||
wins_resize_all();
|
wins_resize_all();
|
||||||
|
status_bar_resize();
|
||||||
inp_win_resize(input, size);
|
inp_win_resize(input, size);
|
||||||
ProfWin *window = wins_get_current();
|
ProfWin *window = wins_get_current();
|
||||||
win_update_virtual(window);
|
win_update_virtual(window);
|
||||||
|
@ -107,10 +107,11 @@ status_bar_resize(void)
|
|||||||
int rows, cols;
|
int rows, cols;
|
||||||
getmaxyx(stdscr, rows, cols);
|
getmaxyx(stdscr, rows, cols);
|
||||||
|
|
||||||
|
werase(status_bar);
|
||||||
|
|
||||||
mvwin(status_bar, rows-2, 0);
|
mvwin(status_bar, rows-2, 0);
|
||||||
wresize(status_bar, 1, cols);
|
wresize(status_bar, 1, cols);
|
||||||
wbkgd(status_bar, COLOUR_STATUS_TEXT);
|
wbkgd(status_bar, COLOUR_STATUS_TEXT);
|
||||||
werase(status_bar);
|
|
||||||
wattron(status_bar, COLOUR_STATUS_BRACKET);
|
wattron(status_bar, COLOUR_STATUS_BRACKET);
|
||||||
mvwprintw(status_bar, 0, cols - 34, _active);
|
mvwprintw(status_bar, 0, cols - 34, _active);
|
||||||
mvwprintw(status_bar, 0, cols - 34 + ((current - 1) * 3), bracket);
|
mvwprintw(status_bar, 0, cols - 34 + ((current - 1) * 3), bracket);
|
||||||
|
Loading…
Reference in New Issue
Block a user