Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_region_search.c
| Show First 20 Lines • Show All 671 Lines • ▼ Show 20 Lines | else { | ||||
| rect.xmin += UI_UNIT_X / 4; | rect.xmin += UI_UNIT_X / 4; | ||||
| if (icon == ICON_BLANK1) { | if (icon == ICON_BLANK1) { | ||||
| icon = ICON_NONE; | icon = ICON_NONE; | ||||
| rect.xmin -= UI_DPI_ICON_SIZE / 4; | rect.xmin -= UI_DPI_ICON_SIZE / 4; | ||||
| } | } | ||||
| /* The previous menu item draws the active selection. */ | /* The previous menu item draws the active selection. */ | ||||
| ui_draw_menu_item( | ui_draw_menu_item(&data->fstyle, &rect, name_sep, icon, state, separator_type, NULL); | ||||
| &data->fstyle, &rect, name_sep, icon, state & ~UI_ACTIVE, separator_type, NULL); | |||||
| } | } | ||||
| } | } | ||||
| /* indicate more */ | /* indicate more */ | ||||
| if (data->items.more) { | if (data->items.more) { | ||||
| ui_searchbox_butrect(&rect, data, data->items.maxitem - 1); | ui_searchbox_butrect(&rect, data, data->items.maxitem - 1); | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| UI_icon_draw((BLI_rcti_size_x(&rect)) / 2, rect.ymin - 9, ICON_TRIA_DOWN); | UI_icon_draw((BLI_rcti_size_x(&rect)) / 2, rect.ymin - 9, ICON_TRIA_DOWN); | ||||
| GPU_blend(GPU_BLEND_NONE); | GPU_blend(GPU_BLEND_NONE); | ||||
| ▲ Show 20 Lines • Show All 386 Lines • Show Last 20 Lines | |||||