Make 'scrolled' themeable
This commit is contained in:
@@ -2432,6 +2432,8 @@ cons_theme_properties(void)
|
||||
_cons_theme_bar_prop(THEME_TITLE_TEXT, "titlebar.text");
|
||||
_cons_theme_bar_prop(THEME_TITLE_BRACKET, "titlebar.brackets");
|
||||
|
||||
_cons_theme_bar_prop(THEME_TITLE_SCROLLED, "titlebar.scrolled");
|
||||
|
||||
_cons_theme_bar_prop(THEME_TITLE_UNENCRYPTED, "titlebar.unencrypted");
|
||||
_cons_theme_bar_prop(THEME_TITLE_ENCRYPTED, "titlebar.encrypted");
|
||||
_cons_theme_bar_prop(THEME_TITLE_UNTRUSTED, "titlebar.untrusted");
|
||||
|
||||
@@ -225,12 +225,15 @@ _show_scrolled(ProfWin *current)
|
||||
{
|
||||
if (current && current->layout->paged == 1) {
|
||||
int bracket_attrs = theme_attrs(THEME_TITLE_BRACKET);
|
||||
int scrolled_attrs = theme_attrs(THEME_TITLE_SCROLLED);
|
||||
|
||||
wattron(win, bracket_attrs);
|
||||
wprintw(win, "[");
|
||||
wattroff(win, bracket_attrs);
|
||||
|
||||
wattron(win, scrolled_attrs);
|
||||
wprintw(win, "SCROLLED");
|
||||
wattroff(win, scrolled_attrs);
|
||||
|
||||
wattron(win, bracket_attrs);
|
||||
wprintw(win, "]");
|
||||
|
||||
Reference in New Issue
Block a user