diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-06 04:19:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-06 04:19:14 +0300 |
commit | 59572cbbc454e6439c7a1fdcb4982697d24371e2 (patch) | |
tree | 7d538eb1e1c92d0adf7e8f7d388d6f8221af145b /source/blender/editors/interface/interface_query.c | |
parent | fa6ed6259c0d2420f9af5217551f67018b59ea74 (diff) |
UI: tweak tool bar tooltips
- Only show label-tips when tools are icon-only.
- Don't show shortcuts in label-tips.
- Position both tool label & full tips around the button bounds.
Diffstat (limited to 'source/blender/editors/interface/interface_query.c')
-rw-r--r-- | source/blender/editors/interface/interface_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_query.c b/source/blender/editors/interface/interface_query.c index 81c2872c1d6..d49a1a727aa 100644 --- a/source/blender/editors/interface/interface_query.c +++ b/source/blender/editors/interface/interface_query.c @@ -98,7 +98,7 @@ bool UI_but_is_tool(const uiBut *but) bool UI_but_has_tooltip_label(const uiBut *but) { - if (!ui_block_is_popover(but->block)) { + if ((but->drawstr[0] == '\0') && !ui_block_is_popover(but->block)) { return UI_but_is_tool(but); } return false; |