diff options
author | Harley Acheson <harley> | 2019-01-14 21:32:58 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-14 22:48:15 +0300 |
commit | 84c06e996a7af0aea8d672897f270a1ad57ac2a2 (patch) | |
tree | f3356ae4816cfa6cff5d7ef08436922f0f721957 /source/blender | |
parent | 46932079184754ace63b25f854e3f273fbf6f0c5 (diff) |
UI: indent subpanel headers more.
Differential Revision: https://developer.blender.org/D4206
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |