remove underline styling from awsome bar - full color tabs

This commit is contained in:
Jakub 2024-07-20 00:37:33 -04:00
parent e53eb79457
commit 9d7f40b41d

27
dwm.c
View File

@ -977,11 +977,13 @@ drawbar(Monitor *m)
for (c = m->clients; c; c = c->next) { for (c = m->clients; c; c = c->next) {
if (!ISVISIBLE(c)) if (!ISVISIBLE(c))
continue; continue;
if (HIDDEN(c))
scm = SchemeHid; if (m->sel == c && m == selmon)
drw_setscheme(drw, scheme[SchemeSel]);
else if (HIDDEN(c))
drw_setscheme(drw, scheme[SchemeHid]);
else else
scm = SchemeNorm; drw_setscheme(drw, scheme[SchemeNorm]);
drw_setscheme(drw, scheme[scm]);
if (remainder >= 0) { if (remainder >= 0) {
if (remainder == 0) { if (remainder == 0) {
@ -997,20 +999,11 @@ drawbar(Monitor *m)
else else
snprintf(name, sizeof name, c->name); snprintf(name, sizeof name, c->name);
mid = (tabw - (int)TEXTW(name)) / 2; mid = ((tabw - (int)TEXTW(name)) / 2) + lrpad / 2;
mid = mid >= lrpad / 2 ? mid : lrpad / 2; if ( tabw < (int)TEXTW(name) + lrpad )
drw_text(drw, x, 0, tabw - 2 * sp, bh, mid, name, 0); mid = lrpad / 2;
if (!HIDDEN(c)) {
if (m->sel == c) {
if (m == selmon)
drw_setscheme(drw, scheme[SchemeHid]);
drw_rect(drw, x + tabw * 0.0675, bh - ulinestroke - ulinevoffset, tabw * 0.875 - ulinepad * 2, ulinestroke, 1, 0);
} else {
drw_rect(drw, x + tabw * 0.375, bh - ulinestroke - ulinevoffset, tabw * 0.25 - ulinepad * 2, ulinestroke, 1, 0);
}
}
drw_text(drw, x, 0, tabw, bh, mid, name, 0);
x += tabw; x += tabw;
} }
} else { } else {