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:
		@@ -2451,6 +2451,9 @@ void ui_draw_but(const bContext *C, ARegion *ar, uiStyle *style, uiBut *but, rct
 | 
				
			|||||||
				
 | 
									
 | 
				
			||||||
			case BUT:
 | 
								case BUT:
 | 
				
			||||||
				wt= widget_type(UI_WTYPE_EXEC);
 | 
									wt= widget_type(UI_WTYPE_EXEC);
 | 
				
			||||||
 | 
									if (!(but->flag & UI_HAS_ICON)) {
 | 
				
			||||||
 | 
										but->flag |= UI_TEXT_LEFT;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			case NUM:
 | 
								case NUM:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user