UI: draw search popups with menu background, instead of box.

Otherwise these are not visible well with the new dark theme.
This commit is contained in:
2018-07-06 13:02:15 +02:00
parent a364150c14
commit 3da1207b48
2 changed files with 3 additions and 2 deletions

View File

@@ -406,7 +406,7 @@ static void ui_searchbox_region_draw_cb(const bContext *C, ARegion *ar)
wmOrtho2_region_pixelspace(ar);
if (data->noback == false) {
ui_draw_widget_back(UI_WTYPE_BOX, true, &data->bbox);
ui_draw_widget_back(UI_WTYPE_MENU_BACK, true, &data->bbox);
}
/* draw text */
@@ -686,7 +686,7 @@ static void ui_searchbox_region_draw_cb__operator(const bContext *UNUSED(C), ARe
wmOrtho2_region_pixelspace(ar);
if (data->noback == false) {
ui_draw_widget_back(UI_WTYPE_BOX, true, &data->bbox);
ui_draw_widget_back(UI_WTYPE_MENU_BACK, true, &data->bbox);
}
/* draw text */

View File

@@ -4564,6 +4564,7 @@ void ui_draw_widget_back_color(
if (use_shadow) {
GPU_blend(true);
GPU_blend_set_func_separate(GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA);
widget_softshadow(rect, UI_CNR_ALL, 0.25f * U.widget_unit);
GPU_blend(false);
}