diff options
author | Yevgeny Makarov <jenkm> | 2020-02-03 19:47:04 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-03 20:41:49 +0300 |
commit | 03a29090b57d087b7996dd25e1505537221233f9 (patch) | |
tree | c85b414774dca963a6256b5460d59e032f705390 /source/blender/blenkernel/BKE_icons.h | |
parent | 5f056fb742fcc79df74d74911369e6b473ec10f0 (diff) |
UI: invert toolbar icon colors for light toolbar button background
Fixes T64177.
Differential Revision: https://developer.blender.org/D6649
Diffstat (limited to 'source/blender/blenkernel/BKE_icons.h')
-rw-r--r-- | source/blender/blenkernel/BKE_icons.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_icons.h b/source/blender/blenkernel/BKE_icons.h index 417591e03c5..27d7f45e480 100644 --- a/source/blender/blenkernel/BKE_icons.h +++ b/source/blender/blenkernel/BKE_icons.h @@ -62,8 +62,8 @@ struct Icon_Geom { int icon_id; int coords_len; int coords_range[2]; - const unsigned char (*coords)[2]; - const unsigned char (*colors)[4]; + unsigned char (*coords)[2]; + unsigned char (*colors)[4]; /* when not NULL, the memory of coords and colors is a sub-region of this pointer. */ const void *mem; }; @@ -160,6 +160,7 @@ struct Icon_Geom *BKE_icon_geom_from_file(const char *filename); struct ImBuf *BKE_icon_geom_rasterize(const struct Icon_Geom *geom, const unsigned int size_x, const unsigned int size_y); +void BKE_icon_geom_invert_lightness(struct Icon_Geom *geom); int BKE_icon_ensure_studio_light(struct StudioLight *sl, int id_type); |