Nodes: Cleanup code for header underline alpha

Use `UI_GetThemeColorBlend4f` instead of manually setting alpha opaque.
This commit is contained in:
Pablo Vazquez 2021-10-27 04:33:12 +02:00
parent 99a2a73706
commit 44ac5830c5
1 changed files with 1 additions and 2 deletions

View File

@ -1812,8 +1812,7 @@ static void node_draw_basis(const bContext *C,
UI_GetThemeColor4fv(TH_WIRE, color_underline);
}
else {
UI_GetThemeColorBlendShade4fv(TH_BACK, color_id, 0.4f, -30, color_underline);
color_underline[3] = 1.0f;
UI_GetThemeColorBlend4f(TH_BACK, color_id, 0.2f, color_underline);
}
const rctf rect = {