UI: Panel Chevron Positioning

Interface_panel chevron was too low. Bumping it up a bit, but also
leaving a bit lower when open (down).

Pull Request: https://projects.blender.org/blender/blender/pulls/117680
This commit is contained in:
Harley Acheson
2024-01-31 00:30:05 +01:00
committed by Harley Acheson
parent f87cc8ca8f
commit 6cc80f1213

View File

@@ -1095,10 +1095,10 @@ static void panel_draw_aligned_widgets(const uiStyle *style,
const float size_y = BLI_rcti_size_y(&widget_rect);
GPU_blend(GPU_BLEND_ALPHA);
UI_icon_draw_ex(widget_rect.xmin + size_y * 0.2f,
widget_rect.ymin + size_y * 0.13f,
widget_rect.ymin + size_y * (UI_panel_is_closed(panel) ? 0.17f : 0.14f),
UI_panel_is_closed(panel) ? ICON_RIGHTARROW : ICON_DOWNARROW_HLT,
aspect * UI_INV_SCALE_FAC,
0.7f,
0.8f,
0.0f,
title_color,
false,