Made toolbar buttons left-aligned.

Currently all tool buttons are left aligned, unless it has an icon like the Render Image and Animation buttons.
Later it might be nicer to introduce a proper flag to make text center aligned for those cases.
This commit is contained in:
2009-11-17 20:19:35 +00:00
parent 068545f3bd
commit 26695c15c2

View File

@@ -2451,6 +2451,9 @@ void ui_draw_but(const bContext *C, ARegion *ar, uiStyle *style, uiBut *but, rct
case BUT:
wt= widget_type(UI_WTYPE_EXEC);
if (!(but->flag & UI_HAS_ICON)) {
but->flag |= UI_TEXT_LEFT;
}
break;
case NUM: