restore the grey background behind each overlay title

This commit is contained in:
Andrew Hamilton 2026-08-24 07:43:10 +10:00
parent 62ac013df2
commit 9cd117e12b
2 changed files with 40 additions and 5 deletions

8
kick.c
View file

@ -2045,12 +2045,11 @@ static void draw_tab_overlay(void) {
int tw = widths[k];
int mw = icon_sz + icon_gap + tw;
bool is_cursor = active && app->focus_member == m;
if (is_cursor)
draw_rect(pen - 2, ry - 1, mw + 4, row_h,
draw_rect(pen - 2, ry - 1, mw + 4, row_h,
0.22f, 0.22f, 0.25f, 1.0f);
if (is_cursor)
draw_rect(pen - 2, ry - 1, mw + 4, row_h,
0.24f, 0.36f, 0.60f, 0.9f);
0.24f, 0.36f, 0.60f, 0.9f);
int mx = pen, my = iy;
if (m->icon_tex) {
GLfloat tint[4] = { active ? 1.0f : 0.72f,
@ -2250,8 +2249,7 @@ static void draw_tab_overlay_pass(struct wlr_render_pass *pass) {
int tw = widths[k];
int mw = icon_sz + icon_gap + tw;
bool is_cursor = active && app->focus_member == m;
if (is_cursor)
overlay_pass_rect(pass, pen - 2, ry - 1, mw + 4, row_h,
overlay_pass_rect(pass, pen - 2, ry - 1, mw + 4, row_h,
0.22f, 0.22f, 0.25f, 1.0f);
if (is_cursor)
overlay_pass_rect(pass, pen - 2, ry - 1, mw + 4, row_h,