remove underline styling from awsome bar - full color tabs
This commit is contained in:
parent
e53eb79457
commit
9d7f40b41d
27
dwm.c
27
dwm.c
@ -977,11 +977,13 @@ drawbar(Monitor *m)
|
||||
for (c = m->clients; c; c = c->next) {
|
||||
if (!ISVISIBLE(c))
|
||||
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
|
||||
scm = SchemeNorm;
|
||||
drw_setscheme(drw, scheme[scm]);
|
||||
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||
|
||||
if (remainder >= 0) {
|
||||
if (remainder == 0) {
|
||||
@ -997,20 +999,11 @@ drawbar(Monitor *m)
|
||||
else
|
||||
snprintf(name, sizeof name, c->name);
|
||||
|
||||
mid = (tabw - (int)TEXTW(name)) / 2;
|
||||
mid = mid >= lrpad / 2 ? mid : lrpad / 2;
|
||||
drw_text(drw, x, 0, tabw - 2 * sp, bh, mid, name, 0);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
mid = ((tabw - (int)TEXTW(name)) / 2) + lrpad / 2;
|
||||
if ( tabw < (int)TEXTW(name) + lrpad )
|
||||
mid = lrpad / 2;
|
||||
|
||||
drw_text(drw, x, 0, tabw, bh, mid, name, 0);
|
||||
x += tabw;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user