Blender Git Loki

Git Commits -> Revision 2aca08f

Revision 2aca08f by Julian Eisel (master)
October 8, 2021, 12:18 (GMT)
UI: Support tooltips for superimposed icons

In a couple of places in the UI, we show superimposed icons on buttons
to execute an operation (called "Extra Icons" internally). Hovering them
would show the tooltip of the underlying button, which is misleading and
confusing.
There are cases where it's not obvious what an icon does, so a tooltip
would be quite useful here. It's likely we are going to use superimposed
icons in more places in the future, e.g. see D11890.

The extra icon basically acts as an override for the button in the
tooltip code.

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

Reviewed by: Campbell Barton

Commit Details:

Full Hash: 2aca08fc1cb6448b593afde7b00ba34ce590551b
Parent Commit: 86643a4
Lines Changed: +146, -43

4 Modified Paths:

/source/blender/editors/include/UI_interface.h (+10, -0) (Diff)
/source/blender/editors/interface/interface.c (+77, -7) (Diff)
/source/blender/editors/interface/interface_handlers.c (+5, -1) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+54, -35) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021