[Bf-blender-cvs] [84c06e996a7] master: UI: indent subpanel headers more.

Harley Acheson noreply at git.blender.org
Mon Jan 14 20:49:07 CET 2019


Commit: 84c06e996a7af0aea8d672897f270a1ad57ac2a2
Author: Harley Acheson
Date:   Mon Jan 14 19:32:58 2019 +0100
Branches: master
https://developer.blender.org/rB84c06e996a7af0aea8d672897f270a1ad57ac2a2

UI: indent subpanel headers more.

Differential Revision: https://developer.blender.org/D4206

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

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

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

diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 7fec94b15f7..c53aadefc20 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -627,7 +627,7 @@ void UI_panel_label_offset(uiBlock *block, int *x, int *y)
 	*y = UI_UNIT_Y * 1.5f;
 
 	if (is_subpanel) {
-		*x += 5.0f / block->aspect;
+		*x += (0.7f * UI_UNIT_X);
 	}
 }
 
@@ -699,7 +699,7 @@ void ui_draw_aligned_panel(
 
 	rcti titlerect = headrect;
 	if (is_subpanel) {
-		titlerect.xmin += 5.0f / block->aspect;
+		titlerect.xmin += (0.7f * UI_UNIT_X);
 	}
 
 	uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);



More information about the Bf-blender-cvs mailing list