Blender Git Loki

Git Commits -> Revision 675807e

Revision 675807e by Red Mser (master)
September 15, 2020, 23:42 (GMT)
UI: Add grid-related theme options

This commit makes grid theming more consistent and capable by adding
some new theme colors related to grid rendering.
- Add grid theme color for node editor. `UI_view2d_multi_grid_draw`
is called with TH_GRID instead of a shaded `TH_BACK`.
Also color-blend `TH_NODE_GROUP`.
- Make the movie clip editor's clip preview grid respect grid theme
color (`ED_region_grid_draw` uses color-blended `TH_GRID`).
- Add versioning code to allow fixing existing themes (the resulting
themes should visually look the same as before)

These changes did cause some inconsistencies in the movie clip editor,
even after adjusting the themes accordingly:
1. The alpha slider of the grid color affects the background and not
the grid lines themselves.
2. The grids used by graph and dopesheet mode could already be themed
in the past. Now that the clip preview's grid can also be themed,
two different modes share the same theme color.

Differential Revision: https://developer.blender.org/D8699

Commit Details:

Full Hash: 675807e2b6b29558367d49ab7f9f30e90c975fcb
Parent Commit: 1858535
Committed By: Hans Goudey
Lines Changed: +42, -17

9 Modified Paths:

/release/datafiles/userdef/userdef_default_theme.c (+2, -0) (Diff)
/release/scripts/presets/interface_theme/blender_light.xml (+3, -0) (Diff)
/source/blender/blenloader/intern/versioning_userdef.c (+7, -0) (Diff)
/source/blender/editors/interface/resources.c (+3, -3) (Diff)
/source/blender/editors/interface/view2d.c (+5, -2) (Diff)
/source/blender/editors/screen/area.c (+7, -3) (Diff)
/source/blender/editors/space_image/image_draw.c (+1, -1) (Diff)
/source/blender/editors/space_node/node_draw.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+12, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021