Blender Git Commit Log
Git Commits -> Revision 8e972bf
Revision 8e972bf by Nathan Craddock (soc-2020-outliner) July 16, 2020, 17:38 (GMT) |
UI: Fix drawing of aligned buttons in menu rows This adds support for drawing icon buttons as a row in a popup menu. This is needed for drawing collection color tag icons in a row in the outliner context menu. A few issues still exist, but I would like some initial review now that it mostly works. * The icons do not draw aligned with the text labels. This is easy to fix, but the hover highlight is still drawn incorrectly. * This works well when creating row icon buttons with an operator_enum, but manually creating the row elements doesn't draw an initial offset blank icon. Differential Revision: https://developer.blender.org/D8317 |
Commit Details:
Full Hash: 8e972bf72b59ecf695c82c2596aa3083ecfadc82
Parent Commit: c122597
Lines Changed: +72, -26
13 Modified Paths:
/source/blender/editors/animation/keyframing.c (+1, -1) (Diff)
/source/blender/editors/animation/keyingsets.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_data.c (+1, -1) (Diff)
/source/blender/editors/include/UI_interface.h (+4, -1) (Diff)
/source/blender/editors/interface/interface.c (+21, -5) (Diff)
/source/blender/editors/interface/interface_layout.c (+37, -11) (Diff)
/source/blender/editors/interface/interface_region_menu_pie.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+1, -1) (Diff)
/source/blender/editors/space_info/info_ops.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+1, -0) (Diff)
/source/blender/editors/animation/keyingsets.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_data.c (+1, -1) (Diff)
/source/blender/editors/include/UI_interface.h (+4, -1) (Diff)
/source/blender/editors/interface/interface.c (+21, -5) (Diff)
/source/blender/editors/interface/interface_layout.c (+37, -11) (Diff)
/source/blender/editors/interface/interface_region_menu_pie.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+1, -1) (Diff)
/source/blender/editors/space_info/info_ops.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+1, -0) (Diff)