Commit: 7e300ed3a198a4ef1246d5cf00874dc15189615e
Author: Campbell Barton
Date:   Wed Feb 12 02:34:48 2014 +1100
https://developer.blender.org/rB7e300ed3a198a4ef1246d5cf00874dc15189615e

UI: change to give sliders more text space, messes with alignment

===================================================================

M       source/blender/editors/interface/interface_widgets.c

===================================================================

diff --git a/source/blender/editors/interface/interface_widgets.c 
b/source/blender/editors/interface/interface_widgets.c
index 759e40a..e9b658a 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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to