diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-10-10 08:41:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-10-10 08:41:55 +0000 |
| commit | b3bc7ec413eae09a92f1228a086475fc36a9bc42 (patch) | |
| tree | d45f4c430f153dbc526ac24ce843c98d8d1aa70a /render.c | |
| parent | Merge branch 'use-pixman-renderer' (diff) | |
| parent | changelog: list scrollback.indicator-color addition (diff) | |
Merge branch 'configurable-indicator-colors'
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2147,12 +2147,19 @@ render_scrollback_position(struct terminal *term) wl_subsurface_set_position( win->scrollback_indicator.sub, x / scale, y / scale); + uint32_t fg = term->colors.table[0]; + uint32_t bg = term->colors.table[8 + 4]; + if (term->conf->colors.use_custom.scrollback_indicator) { + fg = term->conf->colors.scrollback_indicator.fg; + bg = term->conf->colors.scrollback_indicator.bg; + } + render_osd( term, win->scrollback_indicator.surf, win->scrollback_indicator.sub, term->fonts[0], buf, text, - term->colors.table[0], 0xffu << 24 | term->colors.table[8 + 4], + fg, 0xffu << 24 | bg, width - margin - wcslen(text) * term->cell_width, margin); } |
