Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_userdef_types.h
| Show First 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | |||||
| } ThemeWireColor; | } ThemeWireColor; | ||||
| /** #ThemeWireColor.flag */ | /** #ThemeWireColor.flag */ | ||||
| typedef enum eWireColor_Flags { | typedef enum eWireColor_Flags { | ||||
| TH_WIRECOLOR_CONSTCOLS = (1 << 0), | TH_WIRECOLOR_CONSTCOLS = (1 << 0), | ||||
| /* TH_WIRECOLOR_TEXTCOLS = (1 << 1), */ /* UNUSED */ | /* TH_WIRECOLOR_TEXTCOLS = (1 << 1), */ /* UNUSED */ | ||||
| } eWireColor_Flags; | } eWireColor_Flags; | ||||
| typedef struct ThemeCollectionColor { | |||||
| unsigned char color[4]; | |||||
| } ThemeCollectionColor; | |||||
| /** | /** | ||||
| * A theme. | * A theme. | ||||
| * | * | ||||
| * \note Currently only a single theme is ever used at once. | * \note Currently only a single theme is ever used at once. | ||||
| * Different theme presets are stored as external files now. | * Different theme presets are stored as external files now. | ||||
| */ | */ | ||||
| typedef struct bTheme { | typedef struct bTheme { | ||||
| struct bTheme *next, *prev; | struct bTheme *next, *prev; | ||||
| Show All 22 Lines | typedef struct bTheme { | ||||
| ThemeSpace space_clip; | ThemeSpace space_clip; | ||||
| ThemeSpace space_topbar; | ThemeSpace space_topbar; | ||||
| ThemeSpace space_statusbar; | ThemeSpace space_statusbar; | ||||
| /* 20 sets of bone colors for this theme */ | /* 20 sets of bone colors for this theme */ | ||||
| ThemeWireColor tarm[20]; | ThemeWireColor tarm[20]; | ||||
| /*ThemeWireColor tobj[20];*/ | /*ThemeWireColor tobj[20];*/ | ||||
| /* See COLLECTION_COLOR_TOT for the number of collection colors. */ | |||||
Severin: Could we have a `#define` for the number of collection colors? You might not be able to use it… | |||||
| ThemeCollectionColor collection_color[8]; | |||||
| int active_theme_area; | int active_theme_area; | ||||
| char _pad0[4]; | char _pad0[4]; | ||||
| } bTheme; | } bTheme; | ||||
| #define UI_THEMESPACE_START(btheme) \ | #define UI_THEMESPACE_START(btheme) \ | ||||
| (CHECK_TYPE_INLINE(btheme, bTheme *), &((btheme)->space_properties)) | (CHECK_TYPE_INLINE(btheme, bTheme *), &((btheme)->space_properties)) | ||||
| #define UI_THEMESPACE_END(btheme) \ | #define UI_THEMESPACE_END(btheme) \ | ||||
| (CHECK_TYPE_INLINE(btheme, bTheme *), (&((btheme)->space_statusbar) + 1)) | (CHECK_TYPE_INLINE(btheme, bTheme *), (&((btheme)->space_statusbar) + 1)) | ||||
| ▲ Show 20 Lines • Show All 840 Lines • Show Last 20 Lines | |||||
Could we have a #define for the number of collection colors? You might not be able to use it here, but you can at least mention it in a comment. So that if you want to change the number you only need to search for the define to see where you have to change it.
(Could also be an additional item in the enum.)