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:
Yevgeny Makarov 2020-10-28 10:21:18 -07:00 committed by Harley Acheson
parent f7e4b209e2
commit 5af8fc8192
1 changed files with 1 additions and 1 deletions

View File

@ -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. */