mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-13 04:27:47 -05:00
config, render: scrollback indicator: allow configuring scrollback indicator colors
This commit is contained in:
parent
7704bea876
commit
650cfa18ef
3 changed files with 27 additions and 1 deletions
9
render.c
9
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue