diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-11 19:34:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-11 19:46:43 +0400 |
commit | 7e300ed3a198a4ef1246d5cf00874dc15189615e (patch) | |
tree | 253b6a558b7d7b930acecbe5e7793e8d9dc5c919 /source/blender/editors/interface/interface_widgets.c | |
parent | f90a913695ec1d6d379023607d36879b66450e49 (diff) |
UI: change to give sliders more text space, messes with alignment
Diffstat (limited to 'source/blender/editors/interface/interface_widgets.c')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 759e40a7845..e9b658aa9aa 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -2734,12 +2734,11 @@ static void widget_numslider(uiBut *but, uiWidgetColors *wcol, rcti *rect, int s wtb.outline = 1; wtb.inner = 0; widgetbase_draw(&wtb, wcol); - - /* text space */ - if ((roundboxalign & UI_CNR_TOP_LEFT) || (roundboxalign & UI_CNR_BOTTOM_LEFT)) - rect->xmin += toffs; - if ((roundboxalign & UI_CNR_TOP_RIGHT) || (roundboxalign & UI_CNR_BOTTOM_RIGHT)) - rect->xmax -= toffs; + + /* add space at either side of the button so text aligns with numbuttons (which have arrow icons) */ + rect->xmax -= toffs; + rect->xmin += toffs; + } /* I think 3 is sufficient border to indicate keyed status */ |