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:
authorPablo Vazquez <pablo@blender.org>2021-10-27 05:33:12 +0300
committerPablo Vazquez <pablo@blender.org>2021-10-27 05:33:19 +0300
commit44ac5830c561a690646108fd528ec9f3941f66ee (patch)
tree42548e4104608608ca10df6efe826bbce5340d0a /source/blender/editors
parent99a2a737061c7a02c03d7dac4d464c842f0eae63 (diff)
Nodes: Cleanup code for header underline alpha
Use `UI_GetThemeColorBlend4f` instead of manually setting alpha opaque.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_node/node_draw.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index 79c2bc8185b..a6496294f96 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -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 = {