Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_panel.cc
| Show First 20 Lines • Show All 1,106 Lines • ▼ Show 20 Lines | /* Draw collapse icon. */ | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| UI_icon_draw_ex(widget_rect.xmin + size_y * 0.2f, | UI_icon_draw_ex(widget_rect.xmin + size_y * 0.2f, | ||||
| widget_rect.ymin + size_y * 0.2f, | widget_rect.ymin + size_y * 0.2f, | ||||
| UI_panel_is_closed(panel) ? ICON_RIGHTARROW : ICON_DOWNARROW_HLT, | UI_panel_is_closed(panel) ? ICON_RIGHTARROW : ICON_DOWNARROW_HLT, | ||||
| aspect * U.inv_dpi_fac, | aspect * U.inv_dpi_fac, | ||||
| 0.7f, | 0.7f, | ||||
| 0.0f, | 0.0f, | ||||
| title_color, | title_color, | ||||
| false); | false, | ||||
| UI_NO_ICON_OVERLAY_TEXT); | |||||
JacquesLucke: `UI_NO_ICON_OVERLAY_TEXT` | |||||
| GPU_blend(GPU_BLEND_NONE); | GPU_blend(GPU_BLEND_NONE); | ||||
| } | } | ||||
| /* Draw text label. */ | /* Draw text label. */ | ||||
| if (panel->drawname[0] != '\0') { | if (panel->drawname[0] != '\0') { | ||||
| rcti title_rect; | rcti title_rect; | ||||
| title_rect.xmin = widget_rect.xmin + (panel->labelofs / aspect) + scaled_unit * 1.1f; | title_rect.xmin = widget_rect.xmin + (panel->labelofs / aspect) + scaled_unit * 1.1f; | ||||
| title_rect.xmax = widget_rect.xmax; | title_rect.xmax = widget_rect.xmax; | ||||
| Show All 11 Lines | if (show_pin && (panel->flag & PNL_PIN)) { | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| UI_icon_draw_ex(widget_rect.xmax - scaled_unit * 2.2f, | UI_icon_draw_ex(widget_rect.xmax - scaled_unit * 2.2f, | ||||
| widget_rect.ymin + 5.0f / aspect, | widget_rect.ymin + 5.0f / aspect, | ||||
| ICON_PINNED, | ICON_PINNED, | ||||
| aspect * U.inv_dpi_fac, | aspect * U.inv_dpi_fac, | ||||
| 1.0f, | 1.0f, | ||||
| 0.0f, | 0.0f, | ||||
| title_color, | title_color, | ||||
| false); | false, | ||||
| UI_NO_ICON_OVERLAY_TEXT); | |||||
| GPU_blend(GPU_BLEND_NONE); | GPU_blend(GPU_BLEND_NONE); | ||||
| } | } | ||||
| /* Draw drag widget. */ | /* Draw drag widget. */ | ||||
| if (!is_subpanel && show_background) { | if (!is_subpanel && show_background) { | ||||
| const int drag_widget_size = header_height * 0.7f; | const int drag_widget_size = header_height * 0.7f; | ||||
| GPU_matrix_push(); | GPU_matrix_push(); | ||||
| /* The magic numbers here center the widget vertically and offset it to the left. | /* The magic numbers here center the widget vertically and offset it to the left. | ||||
| ▲ Show 20 Lines • Show All 1,430 Lines • Show Last 20 Lines | |||||
UI_NO_ICON_OVERLAY_TEXT