mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-21 01:40:16 -05:00
config: CSD borders are always invisible
That is, remove all configuration options and always draw them fully transparent.
This commit is contained in:
parent
cb6616ef8a
commit
c90d70b2bf
5 changed files with 10 additions and 56 deletions
12
render.c
12
render.c
|
|
@ -779,17 +779,7 @@ render_csd_border(struct terminal *term, enum csd_surface surf_idx)
|
|||
struct buffer *buf = shm_get_buffer(
|
||||
term->wl->shm, info.width, info.height, cookie);
|
||||
|
||||
uint32_t _color = 0;
|
||||
uint16_t alpha = 0;
|
||||
|
||||
if (term->conf->csd.color.border_set) {
|
||||
_color = term->conf->csd.color.border;
|
||||
alpha = _color >> 24 | (_color >> 24 << 8);
|
||||
}
|
||||
|
||||
pixman_color_t color = color_hex_to_pixman_with_alpha(_color, alpha);
|
||||
if (!term->visual_focus)
|
||||
pixman_color_dim(&color);
|
||||
pixman_color_t color = color_hex_to_pixman_with_alpha(0, 0);
|
||||
render_csd_part(term, surf, buf, info.width, info.height, &color);
|
||||
csd_commit(term, surf, buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue