From 7a67bb7018b8be7b54ece0048a22df34923efe68 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 25 Apr 2018 21:01:36 +0200 Subject: UI: workaround for text & icon alignment Blender's icons weren't written to draw different sizes. For now ifdef in a hack to show toolbar icons larger. --- source/blender/editors/include/UI_interface.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/include/UI_interface.h') diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index a9fb328ab8b..67dd2630da3 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -1229,4 +1229,9 @@ void UI_widgetbase_draw_cache_begin(void); void UI_widgetbase_draw_cache_flush(void); void UI_widgetbase_draw_cache_end(void); +/* Special drawing for toolbar, mainly workarounds for inflexible icon sizing. */ +#define USE_TOOLBAR_HACK + +bool UI_but_is_tool(const uiBut *but); + #endif /* __UI_INTERFACE_H__ */ -- cgit v1.2.3