diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-26 05:46:39 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-26 05:50:05 +0300 |
commit | e463d2c16f72e976ed1c886aca3f8efe396978fb (patch) | |
tree | 8de0d79de334a79251e8320934a8575f67d05a76 /release/datafiles | |
parent | 6f5bf8aa3b65521fca3f9a442d5636037ea1730d (diff) |
UI: Change node editor grid into a dot grid
This patch makes the background grid of the node editor a grid of dots
instead of lines. This makes the background look a bit more subtle and
reduces visual complexity. The dots are meant to provide a reference
when panning and zooming. Based on the design of @pablovazquez, and
a patch originally authored by @fabian_schempp.
The "Grid Levels" controls how many levels of dots are drawn. As the
editor zooms in, the higher levels of dots fade in, making them closer
together visually. The zoom factor at which each grid starts and ends
fading in is controllable in the code, and could be tweaked further
in the future. The new default value is 7, out of a range from 0 to 9.
Differential Revision: https://developer.blender.org/D10345
Diffstat (limited to 'release/datafiles')
-rw-r--r-- | release/datafiles/userdef/userdef_default_theme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/datafiles/userdef/userdef_default_theme.c b/release/datafiles/userdef/userdef_default_theme.c index ad93f87e962..867a4c8f56b 100644 --- a/release/datafiles/userdef/userdef_default_theme.c +++ b/release/datafiles/userdef/userdef_default_theme.c @@ -817,7 +817,7 @@ const bTheme U_theme_default = { .sub_back = RGBA(0x0000003e), }, .shade2 = RGBA(0x7f707064), - .grid = RGBA(0x23232300), + .grid = RGBA(0x3d3d3d00), .wire = RGBA(0x232323ff), .select = RGBA(0xed5700ff), .active = RGBA(0xffffffff), @@ -827,7 +827,7 @@ const bTheme U_theme_default = { .outline_width = 1, .facedot_size = 4, .noodle_curving = 4, - .grid_levels = 2, + .grid_levels = 7, .dash_alpha = 0.5f, .syntaxl = RGBA(0x565656ff), .syntaxs = RGBA(0x975b5bff), |