Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-01-29 01:16:24 +0300
committerHans Goudey <h.goudey@me.com>2021-01-29 01:16:24 +0300
commit71cb6923f5073d4d1ca629f1299cfe251f8a611d (patch)
tree685a1ce1d37b9fd0ea12355b3dece493f2c56649 /source/blender/editors/interface/interface_panel.c
parent2f60e5d1b56dfb8c9104f4652e5cfa5914e58bd7 (diff)
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.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r--source/blender/editors/interface/interface_panel.c17
1 files changed, 8 insertions, 9 deletions
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,