diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2018-11-02 18:16:33 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-11-02 18:16:40 +0300 |
commit | ef42dcd31e773b4c2c7ee5f6ef220ea3ce03bf76 (patch) | |
tree | fb63a140dd48673d791e1f78935725d06e55c7ae | |
parent | 46d88c5850a2a5df52d0c8108c98b8bfd6358e77 (diff) |
UI: Darken the backdrop of navigation gizmos.
Bright backdrop would get lost when having bright elements/background in the viewport.
This makes it use a darkened/lighten version of the theme space header color.
Since icons are colored using the 'text' value of the Theme Space, it's likely that any
theme is going to have a contrasting background color, but just in case darken/lighten it slightly.
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_navigate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c index d17f0df0c20..d45da76a477 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c @@ -156,8 +156,10 @@ static void WIDGETGROUP_navigate_setup(const bContext *UNUSED(C), wmGizmoGroup * gz->color_hi[3] = 0.1f; } else { - gz->color[3] = 0.2f; - gz->color_hi[3] = 0.4f; + UI_GetThemeColorShade3fv(TH_HEADER, -40, gz->color); + UI_GetThemeColorShade3fv(TH_HEADER, 160, gz->color_hi); + gz->color[3] = 0.4f; + gz->color_hi[3] = 0.2f; } |