diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-20 19:07:58 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-20 20:15:41 +0300 |
commit | 1a0181bb6d94252fb4e4873eca8cdedc69c348be (patch) | |
tree | 6f9de01cd421092cf883bc29255bf05ce2ac51fc /source/blender/editors/include/UI_resources.h | |
parent | decc323b4e843c711554ebae632385d52caca113 (diff) |
UI: add support for defining any icon as a mono icon.
Previously it was hardcoded to one row. These icons are colored with the
text color. Changes include some refactoring.
Diffstat (limited to 'source/blender/editors/include/UI_resources.h')
-rw-r--r-- | source/blender/editors/include/UI_resources.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/include/UI_resources.h b/source/blender/editors/include/UI_resources.h index 94223d1ff46..112d4a0f33b 100644 --- a/source/blender/editors/include/UI_resources.h +++ b/source/blender/editors/include/UI_resources.h @@ -35,7 +35,9 @@ /* elubie: TODO: move the typedef for icons to UI_interface_icons.h */ /* and add/replace include of UI_resources.h by UI_interface_icons.h */ #define DEF_ICON(name) ICON_##name, -#define DEF_VICO(name) VICO_##name, +#define DEF_ICON_VECTOR(name) ICON_##name, +#define DEF_ICON_MONO(name) ICON_##name, +#define DEF_ICON_BLANK(name) ICON_BLANK_##name, typedef enum { /* ui */ @@ -46,7 +48,9 @@ typedef enum { #define BIFICONID_FIRST (ICON_NONE) #undef DEF_ICON -#undef DEF_VICO +#undef DEF_ICON_VECTOR +#undef DEF_ICON_MONO +#undef DEF_ICON_BLANK /* use to denote intentionally unset theme color */ #define TH_UNDEFINED -1 |