diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-13 22:00:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-13 22:00:05 +0300 |
commit | 8d2309f94f4610eb3d513c31d967d0a5b63ef6ff (patch) | |
tree | 6f47d4e23aef31b34e8a4a37a4c6172ea7b233d6 /source/blender/editors/space_view3d | |
parent | 711a50c5ea4de65be1512a1dbfa82b83ef993f56 (diff) |
3D View: make navigation buttons smaller
Keep orbit large, other buttons are now closer to other icons buttons.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_manipulator_navigate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_manipulator_navigate.c b/source/blender/editors/space_view3d/view3d_manipulator_navigate.c index 1f653941443..22b7af48de6 100644 --- a/source/blender/editors/space_view3d/view3d_manipulator_navigate.c +++ b/source/blender/editors/space_view3d/view3d_manipulator_navigate.c @@ -55,9 +55,9 @@ /* Size of main icon. */ #define MANIPULATOR_SIZE 64 /* Factor for size of smaller button. */ -#define MANIPULATOR_MINI_FAC 0.5f +#define MANIPULATOR_MINI_FAC 0.35f /* How much mini buttons offset from the primary. */ -#define MANIPULATOR_MINI_OFFSET_FAC 0.6666f +#define MANIPULATOR_MINI_OFFSET_FAC 0.42f enum { @@ -309,8 +309,8 @@ static void WIDGETGROUP_navigate_draw_prepare(const bContext *C, wmManipulatorGr rect_visible.ymax - icon_offset, }; const float co[2] = { - rect_visible.xmax - ((show_rotate || show_fixed_offset) ? (icon_offset * 2.2f) : (icon_offset_mini * 0.75f)), - rect_visible.ymax - icon_offset_mini * 0.66f, + rect_visible.xmax - ((show_rotate || show_fixed_offset) ? (icon_offset * 2.0f) : (icon_offset_mini * 0.75f)), + rect_visible.ymax - icon_offset_mini * 0.75f, }; wmManipulator *mpr; |