UI: Improved Checkbox Width Calculation
Improved calculation of checkbox width to include line width preference. Differential Revision: https://developer.blender.org/D9025 Reviewed by Hans Goudey
This commit is contained in:
parent
f7e4b209e2
commit
5af8fc8192
|
@ -4053,7 +4053,7 @@ static void widget_optionbut(uiWidgetColors *wcol,
|
|||
}
|
||||
|
||||
/* smaller */
|
||||
delta = 1 + BLI_rcti_size_y(&recttemp) / 8;
|
||||
delta = (BLI_rcti_size_y(&recttemp) - 2 * U.pixelsize) / 6;
|
||||
BLI_rcti_resize(
|
||||
&recttemp, BLI_rcti_size_x(&recttemp) - delta * 2, BLI_rcti_size_y(&recttemp) - delta * 2);
|
||||
/* Keep one edge in place. */
|
||||
|
|
Loading…
Reference in New Issue