UI: Slight reduction and centering of UI_BTYPE_SEPR_LINE #111764

Merged
Harley Acheson merged 2 commits from Harley/blender:MenuSep into main 2023-09-01 17:12:54 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -3417,7 +3417,7 @@ void uiItemS_ex(uiLayout *layout, float factor)
if (is_menu && !UI_block_can_add_separator(block)) {
return;
}
int space = (is_menu) ? 0.45f * UI_UNIT_X : 0.3f * UI_UNIT_X;
int space = (is_menu) ? int(0.35f * UI_UNIT_X) : int(0.3f * UI_UNIT_X);
space *= factor;
UI_block_layout_set_current(block, layout);

View File

@ -3316,7 +3316,7 @@ static void ui_draw_but_HSV_v(uiBut *but, const rcti *rect)
/** Separator for menus. */
static void ui_draw_separator(const rcti *rect, const uiWidgetColors *wcol)
{
const int y = rect->ymin + BLI_rcti_size_y(rect) / 2 - 1;
const int y = rect->ymin + BLI_rcti_size_y(rect) / 2;
const uchar col[4] = {
wcol->text[0],
wcol->text[1],