diff options
author | Nathan Craddock <Zachman> | 2019-03-28 19:54:35 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-28 22:02:59 +0300 |
commit | 1ef59026e4a20919cd6822d0b789eed09f25e42b (patch) | |
tree | 8c05687f2fd133937242e6abe420e1de179e4595 /source/blender/editors/interface/resources.c | |
parent | 56428a46b9ae0f82b37ee041849bb7847b9afabb (diff) |
UI: tweak display of report messages in the status bar.
Remove fading away the color, share theme colors with info editor.
Differential Revision: https://developer.blender.org/D4197
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index e39f244fd40..72739b99e14 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -1153,6 +1153,16 @@ void UI_GetThemeColor4ubv(int colorid, uchar col[4]) col[3] = cp[3]; } +void UI_GetThemeColorType3fv(int colorid, int spacetype, float col[3]) +{ + const uchar *cp; + + cp = UI_ThemeGetColorPtr(theme_active, spacetype, colorid); + col[0] = ((float)cp[0]) / 255.0f; + col[1] = ((float)cp[1]) / 255.0f; + col[2] = ((float)cp[2]) / 255.0f; +} + void UI_GetThemeColorType3ubv(int colorid, int spacetype, uchar col[3]) { const uchar *cp; |