Fix #133465: Pulldown selected outline color was not used

In the theme settings for the user interface, there was a option to
change the outline color of pulldown menus (E.g. the buttons at the top
of the 3D viewport) when the button was selected.

However this color wasn't used. This commit aims to fix that
by using the selected outline color for the outline of selected
pulldown buttons.

Pull Request: https://projects.blender.org/blender/blender/pulls/133470
This commit is contained in:
Alaska
2025-01-27 22:19:05 +01:00
committed by Harley Acheson
parent f4f2248a9c
commit be975efc9e

View File

@@ -4110,7 +4110,6 @@ static void widget_pulldownbut(uiWidgetColors *wcol,
if (state->but_flag & UI_HOVER) {
copy_v4_v4_uchar(wcol->inner, wcol->inner_sel);
copy_v3_v3_uchar(wcol->text, wcol->text_sel);
copy_v3_v3_uchar(wcol->outline, wcol->inner);
}
else {
wcol->inner[3] *= 1.0f - back[3];