mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Make trackbar color configurable
Use `main.trackbar` in themes.
This commit is contained in:
parent
eb2fbdba2e
commit
6dbbbe11e5
@ -722,6 +722,7 @@ theme_attrs(theme_item_t attrs)
|
|||||||
case THEME_TEXT_ME: _theme_prep_fgnd("main.text.me", lookup_str, &bold); break;
|
case THEME_TEXT_ME: _theme_prep_fgnd("main.text.me", lookup_str, &bold); break;
|
||||||
case THEME_TEXT_THEM: _theme_prep_fgnd("main.text.them", lookup_str, &bold); break;
|
case THEME_TEXT_THEM: _theme_prep_fgnd("main.text.them", lookup_str, &bold); break;
|
||||||
case THEME_SPLASH: _theme_prep_fgnd("main.splash", lookup_str, &bold); break;
|
case THEME_SPLASH: _theme_prep_fgnd("main.splash", lookup_str, &bold); break;
|
||||||
|
case THEME_TRACKBAR: _theme_prep_fgnd("main.trackbar", lookup_str, &bold); break;
|
||||||
case THEME_HELP_HEADER: _theme_prep_fgnd("main.help.header", lookup_str, &bold); break;
|
case THEME_HELP_HEADER: _theme_prep_fgnd("main.help.header", lookup_str, &bold); break;
|
||||||
case THEME_ERROR: _theme_prep_fgnd("error", lookup_str, &bold); break;
|
case THEME_ERROR: _theme_prep_fgnd("error", lookup_str, &bold); break;
|
||||||
case THEME_INCOMING: _theme_prep_fgnd("incoming", lookup_str, &bold); break;
|
case THEME_INCOMING: _theme_prep_fgnd("incoming", lookup_str, &bold); break;
|
||||||
|
@ -139,6 +139,7 @@ typedef enum {
|
|||||||
THEME_MAGENTA_BOLD,
|
THEME_MAGENTA_BOLD,
|
||||||
THEME_TEXT_HISTORY,
|
THEME_TEXT_HISTORY,
|
||||||
THEME_CMD_WINS_UNREAD,
|
THEME_CMD_WINS_UNREAD,
|
||||||
|
THEME_TRACKBAR,
|
||||||
} theme_item_t;
|
} theme_item_t;
|
||||||
|
|
||||||
void theme_init(const char *const theme_name);
|
void theme_init(const char *const theme_name);
|
||||||
|
@ -1698,10 +1698,16 @@ win_print_separator(ProfWin *window)
|
|||||||
{
|
{
|
||||||
int cols = getmaxx(window->layout->win);
|
int cols = getmaxx(window->layout->win);
|
||||||
|
|
||||||
|
wbkgdset(window->layout->win, theme_attrs(THEME_TRACKBAR));
|
||||||
|
wattron(window->layout->win, theme_attrs(THEME_TRACKBAR));
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i=1; i<cols; i++) {
|
for (i=1; i<cols; i++) {
|
||||||
wprintw(window->layout->win, "-");
|
wprintw(window->layout->win, "-");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wattroff(window->layout->win, theme_attrs(THEME_TRACKBAR));
|
||||||
|
|
||||||
wprintw(window->layout->win, "\n");
|
wprintw(window->layout->win, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ main.text.them=
|
|||||||
main.text.history=
|
main.text.history=
|
||||||
main.splash=
|
main.splash=
|
||||||
main.time=
|
main.time=
|
||||||
|
main.trackbar=
|
||||||
input.text=
|
input.text=
|
||||||
subscribed=
|
subscribed=
|
||||||
unsubscribed=
|
unsubscribed=
|
||||||
|
Loading…
Reference in New Issue
Block a user