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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-01 13:47:37 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-01 18:13:08 +0300
commit057f2a1878ac1160c0c2154a29954e55762ddb5f (patch)
tree40334e0aa76a1c09cb65337b80b914a682dc9ce5 /source/blender/editors/space_view3d/view3d_gizmo_navigate.c
parentffcc4be3bbb2cc74cf1de08b6069cf2c16c4db51 (diff)
UI: use backdrop circle for navigation icons, make clickable area bigger.
This will look a bit better once the icon outline is gone.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_gizmo_navigate.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_gizmo_navigate.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c
index 4eee7251022..63c15c7fe5d 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c
@@ -51,13 +51,13 @@
* \{ */
/* Offset from screen edge. */
-#define GIZMO_OFFSET_FAC 1.1f
+#define GIZMO_OFFSET_FAC 1.2f
/* Size of main icon. */
#define GIZMO_SIZE 80
-/* Size of the smaller icons. */
-#define GIZMO_ICON_SIZE 20
+/* Factor for size of smaller button. */
+#define GIZMO_MINI_FAC 0.35f
/* How much mini buttons offset from the primary. */
-#define GIZMO_MINI_OFFSET_FAC 0.32f
+#define GIZMO_MINI_OFFSET_FAC 0.38f
enum {
@@ -162,11 +162,11 @@ static void WIDGETGROUP_navigate_setup(const bContext *UNUSED(C), wmGizmoGroup *
/* may be overwritten later */
- gz->scale_basis = (GIZMO_ICON_SIZE) / 2;
+ gz->scale_basis = (GIZMO_SIZE * GIZMO_MINI_FAC) / 2;
if (info->icon != 0) {
PropertyRNA *prop = RNA_struct_find_property(gz->ptr, "icon");
RNA_property_enum_set(gz->ptr, prop, info->icon);
- RNA_enum_set(gz->ptr, "draw_options", ED_GIZMO_BUTTON_SHOW_OUTLINE);
+ RNA_enum_set(gz->ptr, "draw_options", ED_GIZMO_BUTTON_SHOW_OUTLINE | ED_GIZMO_BUTTON_SHOW_BACKDROP);
}
wmOperatorType *ot = WM_operatortype_find(info->opname, true);