Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-04-25 22:01:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-25 22:02:50 +0300
commit7a67bb7018b8be7b54ece0048a22df34923efe68 (patch)
tree433d2e77fe2ed8e9fd29db15f5d5996ff7ee25fa /source/blender/editors/include/UI_interface.h
parent700012b66e87390a9eee33d4437a073cb8e42076 (diff)
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.
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r--source/blender/editors/include/UI_interface.h5
1 files changed, 5 insertions, 0 deletions
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__ */