fix border width as well

This commit is contained in:
speedie 2023-04-03 23:55:57 +02:00
parent 9078dbe61f
commit 854461e046
2 changed files with 5 additions and 5 deletions

View file

@ -326,12 +326,12 @@ drawnumber(int x, int y, int w, int numberWidth, int modeWidth)
if (!hidematchcount) { // draw match count
drw_setscheme(drw, scheme[SchemeNumber]);
drw_text(drw, mw - numberWidth - modeWidth - 2 * sp, 0, numberWidth, bh, lrpad / 2 + plw / 2, numbers, 0, pango_numbers ? True : False);
drw_text(drw, mw - numberWidth - modeWidth - 2 * sp - 2 * borderwidth, 0, numberWidth, bh, lrpad / 2 + plw / 2, numbers, 0, pango_numbers ? True : False);
// draw powerline for match count
if (!hidepowerline) {
drw_settrans(drw, scheme[SchemeNumber], scheme[SchemeMenu]);
drw_arrow(drw, mw - numberWidth - modeWidth - 2 * sp, 0, plw, bh, 0, 0);
drw_arrow(drw, mw - numberWidth - modeWidth - 2 * sp - 2 * borderwidth, 0, plw, bh, 0, 0);
x += plw;
}
@ -346,12 +346,12 @@ drawmode(int x, int y, int w, int numberWidth, int modeWidth)
if (!hidemode) { // draw mode indicator
drw_setscheme(drw, scheme[SchemeMode]);
drw_text(drw, mw - modeWidth - 2 * sp, 0, modeWidth, bh, lrpad / 2 + plw / 2, modetext, 0, pango_mode ? True : False);
drw_text(drw, mw - modeWidth - 2 * sp - 2 * borderwidth, 0, modeWidth, bh, lrpad / 2 + plw / 2, modetext, 0, pango_mode ? True : False);
// draw powerline for match count
if (!hidepowerline) {
drw_settrans(drw, scheme[SchemeMode], hidematchcount ? scheme[SchemeMenu] : scheme[SchemeNumber]);
drw_arrow(drw, mw - modeWidth - 2 * sp, 0, plw, bh, 0, 0);
drw_arrow(drw, mw - modeWidth - 2 * sp - 2 * borderwidth, 0, plw, bh, 0, 0);
x += plw;
}

View file

@ -607,7 +607,7 @@ setupdisplay(void)
match(); // match entries
// create menu window and set properties for it
create_window(x + sp, y + vp - (menuposition == 2 ? 0 : borderwidth * 2), mw - 2 * sp - borderwidth * 2, mh);
create_window(x + sp, y + vp - (menuposition == 1 ? 0 : borderwidth * 2), mw - 2 * sp - borderwidth * 2, mh);
set_window();
set_prop();