[Bf-blender-cvs] [96e131f246f] master: UI: update node socket colors
Pablo Vazquez
noreply at git.blender.org
Wed Dec 2 15:54:35 CET 2020
Commit: 96e131f246fe2760b559db827278e9e95de2de9e
Author: Pablo Vazquez
Date: Wed Dec 2 13:06:11 2020 +0100
Branches: master
https://developer.blender.org/rB96e131f246fe2760b559db827278e9e95de2de9e
UI: update node socket colors
Note: This also changes the Shader socket color, to match "Shading" in the Outliner.
Theme update for shader nodes will be committed separately.
Ref T82689.
===================================================================
M source/blender/editors/space_node/drawnode.c
===================================================================
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index 0cd08404d19..a0e03490fa3 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -3323,17 +3323,17 @@ void ED_init_custom_node_socket_type(bNodeSocketType *stype)
/* maps standard socket integer type to a color */
static const float std_node_socket_colors[][4] = {
- {0.63, 0.63, 0.63, 1.0}, /* SOCK_FLOAT */
+ {0.75, 0.75, 0.59, 1.0}, /* SOCK_FLOAT */
{0.39, 0.39, 0.78, 1.0}, /* SOCK_VECTOR */
{0.78, 0.78, 0.16, 1.0}, /* SOCK_RGBA */
- {0.39, 0.78, 0.39, 1.0}, /* SOCK_SHADER */
- {0.70, 0.65, 0.19, 1.0}, /* SOCK_BOOLEAN */
+ {0.88, 0.43, 0.46, 1.0}, /* SOCK_SHADER */
+ {0.80, 0.65, 0.84, 1.0}, /* SOCK_BOOLEAN */
{0.0, 0.0, 0.0, 1.0}, /*__SOCK_MESH (deprecated) */
- {0.06, 0.52, 0.15, 1.0}, /* SOCK_INT */
- {0.39, 0.39, 0.39, 1.0}, /* SOCK_STRING */
- {0.40, 0.10, 0.10, 1.0}, /* SOCK_OBJECT */
- {0.10, 0.40, 0.10, 1.0}, /* SOCK_IMAGE */
- {0.00, 0.00, 0.00, 1.0}, /* SOCK_GEOMETRY, TODO: Choose color. */
+ {0.25, 0.75, 0.26, 1.0}, /* SOCK_INT */
+ {0.44, 0.70, 1.00, 1.0}, /* SOCK_STRING */
+ {0.93, 0.62, 0.36, 1.0}, /* SOCK_OBJECT */
+ {0.89, 0.76, 0.43, 1.0}, /* SOCK_IMAGE */
+ {0.00, 0.84, 0.64, 1.0}, /* SOCK_GEOMETRY */
};
/* common color callbacks for standard types */
More information about the Bf-blender-cvs
mailing list