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:
authorAntony Riakiotakis <kalast@gmail.com>2013-01-07 19:42:42 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-01-07 19:42:42 +0400
commitff6339a9799b854e145608c4ed3673227b85d971 (patch)
tree81ee94fdd17495d626f425c035492e2d1cd8faa3 /source/blender/makesdna/DNA_userdef_types.h
parent12d921eb5b438473cf1cbf287d3f7640cad32f40 (diff)
Make options for background gradient more organized.
This was difficult to do because we group theme colours and display them together in user preferences. To make the background options more presentable and keep them grouped and separate, I needed to group the two gradient colours somehow. I added a separate ThemeSpaceGradient RNA struct as opposed to ThemeSpaceGeneric. This struct is the same as ThemeSpaceGeneric but it lacks the window background option (which does nothing now) and includes the UiGradient struct which now has both gradient colours. I modified the clear functions to use a new high colour from the gradient. Now all options appear grouped and any other editor that may use a gradient for the window background may do so. Also corrected incorrect MAIN_VERSION_ATLEAST macro, it would not detect versions correctly
Diffstat (limited to 'source/blender/makesdna/DNA_userdef_types.h')
-rw-r--r--source/blender/makesdna/DNA_userdef_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h
index d6da03040cc..3027a3abd7d 100644
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@ -151,7 +151,7 @@ typedef struct uiPanelColors {
typedef struct uiGradientColors {
char gradient[4];
- char pad[4];
+ char high_gradient[4];
int show_grad;
int pad2;
} uiGradientColors;