Adding underlinetags patch ref. #199
This commit is contained in:
@ -63,6 +63,10 @@ draw_taglabels(Bar *bar, BarArg *a)
|
||||
w = TEXTW(m->taglabel[i]);
|
||||
drw_text(drw, x, a->y, w, a->h, lrpad / 2, m->taglabel[i], invert, False);
|
||||
drawindicator(m, NULL, occ, x, a->y, w, a->h, i, -1, invert, tagindicatortype);
|
||||
#if BAR_UNDERLINETAGS_PATCH
|
||||
if (ulineall || m->tagset[m->seltags] & 1 << i)
|
||||
drw_rect(drw, x + ulinepad, bh - ulinestroke - ulinevoffset, w - (ulinepad * 2), ulinestroke, 1, 0);
|
||||
#endif // BAR_UNDERLINETAGS_PATCH
|
||||
x += w;
|
||||
}
|
||||
|
||||
|
@ -57,6 +57,10 @@ draw_tags(Bar *bar, BarArg *a)
|
||||
]);
|
||||
drw_text(drw, x, a->y, w, a->h, lrpad / 2, icon, invert, False);
|
||||
drawindicator(m, NULL, occ, x, a->y, w, a->h, i, -1, invert, tagindicatortype);
|
||||
#if BAR_UNDERLINETAGS_PATCH
|
||||
if (ulineall || m->tagset[m->seltags] & 1 << i)
|
||||
drw_rect(drw, x + ulinepad, bh - ulinestroke - ulinevoffset, w - (ulinepad * 2), ulinestroke, 1, 0);
|
||||
#endif // BAR_UNDERLINETAGS_PATCH
|
||||
x += w;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user