mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Make 'scrolled' themeable
This commit is contained in:
parent
469fa8f863
commit
fcd69532ad
@ -737,6 +737,7 @@ theme_attrs(theme_item_t attrs)
|
|||||||
case THEME_TIME: _theme_prep_fgnd("main.time", lookup_str, &bold); break;
|
case THEME_TIME: _theme_prep_fgnd("main.time", lookup_str, &bold); break;
|
||||||
case THEME_TITLE_TEXT: _theme_prep_fgnd("titlebar.text", lookup_str, &bold); break;
|
case THEME_TITLE_TEXT: _theme_prep_fgnd("titlebar.text", lookup_str, &bold); break;
|
||||||
case THEME_TITLE_BRACKET: _theme_prep_fgnd("titlebar.brackets", lookup_str, &bold); break;
|
case THEME_TITLE_BRACKET: _theme_prep_fgnd("titlebar.brackets", lookup_str, &bold); break;
|
||||||
|
case THEME_TITLE_SCROLLED: _theme_prep_fgnd("titlebar.scrolled", lookup_str, &bold); break;
|
||||||
case THEME_TITLE_UNENCRYPTED: _theme_prep_fgnd("titlebar.unencrypted", lookup_str, &bold); break;
|
case THEME_TITLE_UNENCRYPTED: _theme_prep_fgnd("titlebar.unencrypted", lookup_str, &bold); break;
|
||||||
case THEME_TITLE_ENCRYPTED: _theme_prep_fgnd("titlebar.encrypted", lookup_str, &bold); break;
|
case THEME_TITLE_ENCRYPTED: _theme_prep_fgnd("titlebar.encrypted", lookup_str, &bold); break;
|
||||||
case THEME_TITLE_UNTRUSTED: _theme_prep_fgnd("titlebar.untrusted", lookup_str, &bold); break;
|
case THEME_TITLE_UNTRUSTED: _theme_prep_fgnd("titlebar.untrusted", lookup_str, &bold); break;
|
||||||
@ -827,6 +828,7 @@ theme_attrs(theme_item_t attrs)
|
|||||||
switch (attrs) {
|
switch (attrs) {
|
||||||
case THEME_TITLE_TEXT:
|
case THEME_TITLE_TEXT:
|
||||||
case THEME_TITLE_BRACKET:
|
case THEME_TITLE_BRACKET:
|
||||||
|
case THEME_TITLE_SCROLLED:
|
||||||
case THEME_TITLE_UNENCRYPTED:
|
case THEME_TITLE_UNENCRYPTED:
|
||||||
case THEME_TITLE_ENCRYPTED:
|
case THEME_TITLE_ENCRYPTED:
|
||||||
case THEME_TITLE_UNTRUSTED:
|
case THEME_TITLE_UNTRUSTED:
|
||||||
|
@ -56,6 +56,7 @@ typedef enum {
|
|||||||
THEME_TIME,
|
THEME_TIME,
|
||||||
THEME_TITLE_TEXT,
|
THEME_TITLE_TEXT,
|
||||||
THEME_TITLE_BRACKET,
|
THEME_TITLE_BRACKET,
|
||||||
|
THEME_TITLE_SCROLLED,
|
||||||
THEME_TITLE_UNENCRYPTED,
|
THEME_TITLE_UNENCRYPTED,
|
||||||
THEME_TITLE_ENCRYPTED,
|
THEME_TITLE_ENCRYPTED,
|
||||||
THEME_TITLE_UNTRUSTED,
|
THEME_TITLE_UNTRUSTED,
|
||||||
|
@ -2432,6 +2432,8 @@ cons_theme_properties(void)
|
|||||||
_cons_theme_bar_prop(THEME_TITLE_TEXT, "titlebar.text");
|
_cons_theme_bar_prop(THEME_TITLE_TEXT, "titlebar.text");
|
||||||
_cons_theme_bar_prop(THEME_TITLE_BRACKET, "titlebar.brackets");
|
_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_UNENCRYPTED, "titlebar.unencrypted");
|
||||||
_cons_theme_bar_prop(THEME_TITLE_ENCRYPTED, "titlebar.encrypted");
|
_cons_theme_bar_prop(THEME_TITLE_ENCRYPTED, "titlebar.encrypted");
|
||||||
_cons_theme_bar_prop(THEME_TITLE_UNTRUSTED, "titlebar.untrusted");
|
_cons_theme_bar_prop(THEME_TITLE_UNTRUSTED, "titlebar.untrusted");
|
||||||
|
@ -225,12 +225,15 @@ _show_scrolled(ProfWin *current)
|
|||||||
{
|
{
|
||||||
if (current && current->layout->paged == 1) {
|
if (current && current->layout->paged == 1) {
|
||||||
int bracket_attrs = theme_attrs(THEME_TITLE_BRACKET);
|
int bracket_attrs = theme_attrs(THEME_TITLE_BRACKET);
|
||||||
|
int scrolled_attrs = theme_attrs(THEME_TITLE_SCROLLED);
|
||||||
|
|
||||||
wattron(win, bracket_attrs);
|
wattron(win, bracket_attrs);
|
||||||
wprintw(win, "[");
|
wprintw(win, "[");
|
||||||
wattroff(win, bracket_attrs);
|
wattroff(win, bracket_attrs);
|
||||||
|
|
||||||
|
wattron(win, scrolled_attrs);
|
||||||
wprintw(win, "SCROLLED");
|
wprintw(win, "SCROLLED");
|
||||||
|
wattroff(win, scrolled_attrs);
|
||||||
|
|
||||||
wattron(win, bracket_attrs);
|
wattron(win, bracket_attrs);
|
||||||
wprintw(win, "]");
|
wprintw(win, "]");
|
||||||
|
@ -3,6 +3,7 @@ bkgnd=
|
|||||||
titlebar=
|
titlebar=
|
||||||
titlebar.text=
|
titlebar.text=
|
||||||
titlebar.brackets=
|
titlebar.brackets=
|
||||||
|
titlebar.scrolled=
|
||||||
titlebar.unencrypted=
|
titlebar.unencrypted=
|
||||||
titlebar.encrypted=
|
titlebar.encrypted=
|
||||||
titlebar.untrusted=
|
titlebar.untrusted=
|
||||||
|
Loading…
Reference in New Issue
Block a user