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 (2bd0205215
).
Theme change by Pablo Vazquez.
Differential Revision: https://developer.blender.org/D12649
This commit is contained in:
parent
3d2ce25afd
commit
4a0ddeb62b
|
@ -817,7 +817,7 @@ const bTheme U_theme_default = {
|
|||
},
|
||||
.shade2 = RGBA(0x7f707064),
|
||||
.grid = RGBA(0x23232300),
|
||||
.wire = RGBA(0x808080ff),
|
||||
.wire = RGBA(0x232323ff),
|
||||
.select = RGBA(0xed5700ff),
|
||||
.active = RGBA(0xffffffff),
|
||||
.edge_select = RGBA(0xffffffff),
|
||||
|
|
|
@ -39,7 +39,7 @@ extern "C" {
|
|||
|
||||
/* Blender file format version. */
|
||||
#define BLENDER_FILE_VERSION BLENDER_VERSION
|
||||
#define BLENDER_FILE_SUBVERSION 26
|
||||
#define BLENDER_FILE_SUBVERSION 27
|
||||
|
||||
/* Minimum Blender version that supports reading file written with the current
|
||||
* version. Older Blender versions will test this and show a warning if the file
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue