all repos — openbox @ 5072931be0ff28cd9447926d50fe5ea202e2c370

openbox fork - make it a bit more like ryudo

use bevel width on the top/bottom too
Dana Jansens danakj@orodu.net
commit

5072931be0ff28cd9447926d50fe5ea202e2c370

parent

871e777e55fa76938da991b9b1a72605ba78bad4

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M otk/focuslabel.ccotk/focuslabel.cc

@@ -38,7 +38,7 @@

void FocusLabel::fitSize(int w, int h) { unsigned int sidemargin = _bevel_width * 2; - resize(w + sidemargin * 2, h); + resize(w + sidemargin * 2, h + _bevel_width * 2); } void FocusLabel::update()

@@ -104,7 +104,7 @@ }

} display->renderControl(_screen)-> - drawString(*_surface, *ft, x, 0, *text_color, t); + drawString(*_surface, *ft, x, _bevel_width, *text_color, t); } }
M otk/label.ccotk/label.cc

@@ -34,7 +34,7 @@

void Label::fitSize(int w, int h) { unsigned int sidemargin = _bevel_width * 2; - resize(w + sidemargin * 2, h); + resize(w + sidemargin * 2, h + _bevel_width * 2); } void Label::update()

@@ -98,7 +98,7 @@ }

} display->renderControl(_screen)-> - drawString(*_surface, *ft, x, 0, *style()->textUnfocusColor(), t); + drawString(*_surface, *ft, x, _bevel_width, *style()->textUnfocusColor(), t); } }