From 650cfa18efdc38164600959e90fdaa50f58910e4 Mon Sep 17 00:00:00 2001 From: "feeptr@codeberg.org" Date: Mon, 27 Sep 2021 19:05:40 +0000 Subject: config, render: scrollback indicator: allow configuring scrollback indicator colors --- render.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'render.c') diff --git a/render.c b/render.c index c4b1b4c8..9a5291e4 100644 --- a/render.c +++ b/render.c @@ -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); } -- cgit v1.3