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:
authorDalai Felinto <dalai@blender.org>2021-09-27 16:37:07 +0300
committerDalai Felinto <dalai@blender.org>2021-09-27 17:09:40 +0300
commit4a0ddeb62bb4a438dfa9cedc7ea5a528531eaaee (patch)
tree59d56eea95e27b1b81062dd316ad6c2c7db73c0e /source/blender/blenloader/intern/versioning_userdef.c
parent3d2ce25afd7e8ed823277f34f370fb1fb49a739e (diff)
Nodes: Change wire color to increase contrast
If the theme used by the user did not touch the wire or the wire outline colors this will update them as well. This was supposed to be a part of a bigger UI theme change for 3.0. But it was expedited because of the recent change in line thickness for the noodles (2bd02052157). Theme change by Pablo Vazquez. Differential Revision: https://developer.blender.org/D12649
Diffstat (limited to 'source/blender/blenloader/intern/versioning_userdef.c')
-rw-r--r--source/blender/blenloader/intern/versioning_userdef.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c
index a0f35d32a7c..64ecfbe78de 100644
--- a/source/blender/blenloader/intern/versioning_userdef.c
+++ b/source/blender/blenloader/intern/versioning_userdef.c
@@ -291,6 +291,16 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
btheme->space_sequencer.grid[3] = 255;
}
+ if (!USER_VERSION_ATLEAST(300, 27)) {
+ /* If users have not changed the color of the wires inner color or main color,
+ * set it to the new default. */
+ if ((btheme->space_node.wire[0] == 35) && (btheme->space_node.wire[1] == 35) &&
+ (btheme->space_node.wire[2] == 35) && (btheme->space_node.syntaxr[0] == 128) &&
+ (btheme->space_node.syntaxr[1] == 128) && (btheme->space_node.syntaxr[2] == 128)) {
+ FROM_DEFAULT_V4_UCHAR(space_node.wire);
+ }
+ }
+
/**
* Versioning code until next subversion bump goes here.
*