From 9feb02e9ad1a3db4ae323a224da6bc7333c81175 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 11 Mar 2024 19:47:52 +0100 Subject: [PATCH] Fix #113170: node editor background color affects node panel color The offset `-15` that's passed to `UI_GetThemeColorShade4fv` is chosen so that the color stays almost the same in the default theme. Pull Request: https://projects.blender.org/blender/blender/pulls/119283 --- source/blender/editors/space_node/node_draw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 73f37655e53..10b5e3c6665 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -2110,7 +2110,7 @@ static void node_draw_panels_background(const bNode &node, uiBlock &block) const nodes::NodeDeclaration &decl = *node.declaration(); const rctf &rct = node.runtime->totr; float color_panel[4]; - UI_GetThemeColorBlend4f(TH_BACK, TH_NODE, 0.2f, color_panel); + UI_GetThemeColorShade4fv(TH_NODE, -15, color_panel); /* True if the last panel is open, draw bottom gap as background. */ bool is_last_panel_visible = false;