Blender Git Loki

Git Commits -> Revision 277e03c

Revision 277e03c by Hans Goudey (property-search-ui-v2)
September 2, 2020, 14:39 (GMT)
UI: Keep track of button's relationship with label buttons

This is needed for property search where we want to highlight a button's label if it matches the search
filter. Otherwise the button itself is highlighted but it has no idea what label to highlight.

This is especially important because of the use of property split layouts where the label is almost
always outside of the button in a separate column.

The additional logic in the layout code isn't ideal, but I think this is generally a good thing to keep track of.
For example, another use for this could be adding a highlight to a buttons label on mouseover.

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

Commit Details:

Full Hash: 277e03c6bd53490045fd5c41cc694d2d43b0bbc1
Parent Commit: 89ed6b1
Lines Changed: +146, -69

5 Modified Paths:

/source/blender/editors/include/UI_interface.h (+4, -1) (Diff)
/source/blender/editors/interface/interface_intern.h (+8, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+125, -59) (Diff)
/source/blender/editors/interface/interface_templates.c (+1, -1) (Diff)
/source/blender/editors/space_graph/graph_buttons.c (+8, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021