diff options
author | Michael Soluyanov <crantisz> | 2020-03-23 18:00:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-23 18:35:29 +0300 |
commit | c95b522856c590e31278548ec02bbac1a64e217d (patch) | |
tree | 451ee4f970def4c34ca8cab6b4eb7081865491af /source/blender/makesdna | |
parent | 88a86c025c0fb29b27b6caf7bd3873114e6e7c45 (diff) |
UI: Theme options for checkerboard pattern colors and size
This patch adds ability to set up colors and size of background
(transparency) checkerboard pattern in viewport and 2d editors. No new
backgrounds, only changing colors in existing ones.
This is not the background of the viewport, it is a transparency
checkerboard that is turned on only in render mode, when the
transparency mode is on. And also in 2D-editors, (image, sequencer,
etc).
Reviewed By: Pablo Vazquez, Julian Eisel
Differential Revision: https://developer.blender.org/D6791
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index ccd93fb9b06..30b4098c2bb 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -169,7 +169,11 @@ typedef struct ThemeUI { short menu_shadow_width; unsigned char editor_outline[4]; - char _pad0[2]; + + /* Transparent Grid */ + unsigned char transparent_checker_primary[4], transparent_checker_secondary[4]; + unsigned char transparent_checker_size; + char _pad1[1]; float icon_alpha; float icon_saturation; |