forked from bartvdbraak/blender
UI: remove text margin when a slider is aligned to another button
Paint sliders had too much space on right (aligned with pressure icons)
This commit is contained in:
parent
e45a9a3aaa
commit
51b9d85b09
@ -2631,8 +2631,10 @@ static void widget_numslider(uiBut *but, uiWidgetColors *wcol, rcti *rect, int s
|
||||
widgetbase_draw(&wtb, wcol);
|
||||
|
||||
/* text space */
|
||||
rect->xmin += toffs;
|
||||
rect->xmax -= toffs;
|
||||
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;
|
||||
}
|
||||
|
||||
/* I think 3 is sufficient border to indicate keyed status */
|
||||
|
Loading…
Reference in New Issue
Block a user