about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/config/theme.c2
-rw-r--r--src/config/theme.h1
-rw-r--r--src/ui/console.c2
-rw-r--r--src/ui/titlebar.c3
-rw-r--r--theme_template1
5 files changed, 9 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index c7d979c5..48fbd95b 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -737,6 +737,7 @@ theme_attrs(theme_item_t attrs)
     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_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_ENCRYPTED:         _theme_prep_fgnd("titlebar.encrypted",      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) {
     case THEME_TITLE_TEXT:
     case THEME_TITLE_BRACKET:
+    case THEME_TITLE_SCROLLED:
     case THEME_TITLE_UNENCRYPTED:
     case THEME_TITLE_ENCRYPTED:
     case THEME_TITLE_UNTRUSTED:
diff --git a/src/config/theme.h b/src/config/theme.h
index 6a33d37a..86fd534e 100644
--- a/src/config/theme.h
+++ b/src/config/theme.h
@@ -56,6 +56,7 @@ typedef enum {
     THEME_TIME,
     THEME_TITLE_TEXT,
     THEME_TITLE_BRACKET,
+    THEME_TITLE_SCROLLED,
     THEME_TITLE_UNENCRYPTED,
     THEME_TITLE_ENCRYPTED,
     THEME_TITLE_UNTRUSTED,
diff --git a/src/ui/console.c b/src/ui/console.c
index d2158862..ce963c8c 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -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");
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c
index fabcd410..14a73819 100644
--- a/src/ui/titlebar.c
+++ b/src/ui/titlebar.c
@@ -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, "]");
diff --git a/theme_template b/theme_template
index e3644c97..1fd2a26b 100644
--- a/theme_template
+++ b/theme_template
@@ -3,6 +3,7 @@ bkgnd=
 titlebar=
 titlebar.text=
 titlebar.brackets=
+titlebar.scrolled=
 titlebar.unencrypted=
 titlebar.encrypted=
 titlebar.untrusted=