From 71cb6923f5073d4d1ca629f1299cfe251f8a611d Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 28 Jan 2021 16:16:24 -0600 Subject: Fix T83988: Active modifier outline uses search theme color The outline for the active modifier was abusing the property search match theme color, as noted in a comment. This commit adds a new theme color in RNA specifically for the active modifier outline. --- source/blender/editors/interface/interface_panel.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'source/blender/editors/interface/interface_panel.c') diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 12862363c5b..bf140eb1692 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1119,16 +1119,15 @@ static void panel_draw_highlight_border(const Panel *panel, radius = 0.0f; } - /* Abuse the property search theme color for now. */ float color[4]; - UI_GetThemeColor4fv(TH_MATCH, color); - UI_draw_roundbox_aa(false, - rect->xmin, - UI_panel_is_closed(panel) ? header_rect->ymin : rect->ymin, - rect->xmax, - header_rect->ymax, - radius, - color); + UI_GetThemeColor4fv(TH_SELECT_ACTIVE, color); + UI_draw_roundbox_4fv(false, + rect->xmin, + UI_panel_is_closed(panel) ? header_rect->ymin : rect->ymin, + rect->xmax, + header_rect->ymax, + radius, + color); } static void panel_draw_aligned_widgets(const uiStyle *style, -- cgit v1.2.3