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:
authorCampbell Barton <ideasman42@gmail.com>2019-01-11 04:59:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-11 04:59:19 +0300
commit5c6d5cb8639aa71e2728258e9a4afe7c9d822bc7 (patch)
tree6633ee4150ef2246ffa8ced974f1b883d1d4bb44 /source/blender/makesdna
parentf98e4cbedbb73d22b649275208e0318838dea089 (diff)
Fix background color use in 3D view
TH_BACK was being used when drawing the 3D view even though there was no way to set the color in the preferences. The color was zero'd when moving to the new 2.8x theme. Having both gradient and background colors was confusing, especially having to use 'TH_HIGH_GRAD' for the 3D view, 'TH_BACK' for other views. Move the background color back to 'TH_BACK', 'TH_BACK_GRAD' is used when gradients are enabled. RNA is unchanged so presets don't need updating.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_userdef_types.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h
index 301dba3fac2..a749fba5026 100644
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@ -164,13 +164,6 @@ typedef struct uiPanelColors {
char pad2[4];
} uiPanelColors;
-typedef struct uiGradientColors {
- char gradient[4];
- char high_gradient[4];
- int show_grad;
- int pad2;
-} uiGradientColors;
-
typedef struct ThemeUI {
/* Interface Elements (buttons, menus, icons) */
uiWidgetColors wcol_regular, wcol_tool, wcol_toolbar_item, wcol_text;
@@ -227,6 +220,11 @@ typedef struct ThemeUI {
typedef struct ThemeSpace {
/* main window colors */
char back[4];
+ char back_grad[4];
+
+ char show_back_grad;
+ char _pad0[3];
+
/** Panel title. */
char title[4];
char text[4];
@@ -277,8 +275,6 @@ typedef struct ThemeSpace {
/* note, cannot use name 'panel' because of DNA mapping old files */
uiPanelColors panelcolors;
- uiGradientColors gradients;
-
char shade1[4];
char shade2[4];