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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user