all repos — openbox @ 9c32f34b3766de01c51bc5d00c17d68804ab2603

openbox fork - make it a bit more like ryudo

center the text and icon vertically
Dana Jansens danakj@orodu.net
commit

9c32f34b3766de01c51bc5d00c17d68804ab2603

parent

2864a761c7fb4fd0cd04af22ba02d4b83a970a96

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M openbox/popup.copenbox/popup.c

@@ -177,7 +177,6 @@ if (self->textw)

textw = self->textw; iconx = textx = l + ob_rr_theme->paddingx; - icony = texty = t + ob_rr_theme->paddingy; emptyx = l + r + ob_rr_theme->paddingx * 2; if (self->hasicon) {

@@ -188,6 +187,9 @@ if (textw)

emptyx += ob_rr_theme->paddingx; /* between the icon and text */ } else iconw = 0; + + texty = (h - texth - emptyy) / 2 + t + ob_rr_theme->paddingy; + icony = (h - iconh - emptyy) / 2 + t + ob_rr_theme->paddingy; w = textw + emptyx + iconw; /* cap it at maxw/minw */