[Bf-blender-cvs] [03506ee4d14] master: UI: use consistent text box theme colors in search popups

Brecht Van Lommel noreply at git.blender.org
Wed Oct 2 18:58:10 CEST 2019


Commit: 03506ee4d145e94a2d364341565a811613984721
Author: Brecht Van Lommel
Date:   Wed Oct 2 18:52:45 2019 +0200
Branches: master
https://developer.blender.org/rB03506ee4d145e94a2d364341565a811613984721

UI: use consistent text box theme colors in search popups

This solves an issues where these text fields would use menu background colors,
making it difficult to create a correct theme.

Default theme looks the same, only Blender Light now shows a dark text field.

Patch contributed by Paul (Thirio).

Differential Revision: https://developer.blender.org/D5906

===================================================================

M	source/blender/editors/interface/interface_widgets.c

===================================================================

diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index 9f1b11d1354..ce73e4de45c 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -4638,9 +4638,6 @@ void ui_draw_but(const bContext *C, ARegion *ar, uiStyle *style, uiBut *but, rct
 
       case UI_BTYPE_SEARCH_MENU:
         wt = widget_type(UI_WTYPE_NAME);
-        if (but->block->theme_style == UI_BLOCK_THEME_STYLE_POPUP) {
-          wt->wcol_theme = &btheme->tui.wcol_menu_back;
-        }
         break;
 
       case UI_BTYPE_TAB:



More information about the Bf-blender-cvs mailing list