all repos — openbox @ a1184b2b7707a9d5c7e6680a6730a6d629e9fa03

openbox fork - make it a bit more like ryudo

add the margins to the label_height so that the text doesnt cover the bevel/border
Dana Jansens danakj@orodu.net
commit

a1184b2b7707a9d5c7e6680a6730a6d629e9fa03

parent

2811fd1992f0e5f784d42a261b3ca483967fb20b

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

jump to
M render/theme.crender/theme.c

@@ -878,7 +878,15 @@ theme->menu_bullet_selected_color;

XrmDestroyDatabase(db); - theme->label_height = theme->winfont_height; + { + gint fl, ft, fr, fb; + gint ul, ut, ur, ub; + + RrMargins(theme->a_focused_label, &fl, &ft, &fr, &fb); + RrMargins(theme->a_unfocused_label, &ul, &ut, &ur, &ub); + theme->label_height = theme->winfont_height + + MAX(ft + fb, ut + ub); + } theme->title_height = theme->label_height + theme->bevel * 2; theme->button_size = theme->label_height - 2; theme->grip_width = theme->title_height * 1.5;