[Bf-blender-cvs] [dd199d80328] blender2.8: UI: tweak icon spacing in menus to put them in the middle of the edge and text.

Harley Acheson noreply at git.blender.org
Tue Oct 16 20:34:22 CEST 2018


Commit: dd199d8032887e03d0db3fcc8964cfb430452c04
Author: Harley Acheson
Date:   Tue Oct 16 20:29:28 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBdd199d8032887e03d0db3fcc8964cfb430452c04

UI: tweak icon spacing in menus to put them in the middle of the edge and text.

===================================================================

M	source/blender/editors/interface/interface_widgets.c

===================================================================

diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index 92f5ad08f89..6ff4ac5470a 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -2099,7 +2099,7 @@ static void widget_draw_text_icon(uiFontStyle *fstyle, uiWidgetColors *wcol, uiB
 				rect->xmin += 0.3f * U.widget_unit;
 		}
 		else if (ui_block_is_menu(but->block))
-			rect->xmin += 0.3f * U.widget_unit;
+			rect->xmin += 0.2f * U.widget_unit;
 
 		widget_draw_icon(but, icon, alpha, rect, wcol->text);
 		if (show_menu_icon) {



More information about the Bf-blender-cvs mailing list