Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley>2019-01-14 21:32:58 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-14 22:48:15 +0300
commit84c06e996a7af0aea8d672897f270a1ad57ac2a2 (patch)
treef3356ae4816cfa6cff5d7ef08436922f0f721957
parent46932079184754ace63b25f854e3f273fbf6f0c5 (diff)
UI: indent subpanel headers more.
Differential Revision: https://developer.blender.org/D4206
-rw-r--r--source/blender/editors/interface/interface_panel.c4
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);