diff options
author | Thomas Dinges <blender@dingto.org> | 2010-01-15 20:00:37 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2010-01-15 20:00:37 +0300 |
commit | 1b580dde6e633056c1a9f0436b778dc2797ef469 (patch) | |
tree | 999a4f9b774dde27d27abc05d3d5979accc6d2a7 /source/blender/editors/space_console/console_draw.c | |
parent | 3ff987c46a284c6fe7acb574d42a25c32ee29f7a (diff) |
Console:
* Added Theme support for the console.
You can change:
-Header Color
-Text Color of Output, Input, Info and Error Messages. (Inside the User Preferences -> Themes)
Diffstat (limited to 'source/blender/editors/space_console/console_draw.c')
-rw-r--r-- | source/blender/editors/space_console/console_draw.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/space_console/console_draw.c b/source/blender/editors/space_console/console_draw.c index ab1fc8a5fca..3fee2b6277b 100644 --- a/source/blender/editors/space_console/console_draw.c +++ b/source/blender/editors/space_console/console_draw.c @@ -78,16 +78,20 @@ static void console_line_color(unsigned char *fg, int type) { switch(type) { case CONSOLE_LINE_OUTPUT: - fg[0]=96; fg[1]=128; fg[2]=255; + UI_GetThemeColor3ubv(TH_CONSOLE_OUTPUT, fg); + fg[0], fg[1], fg[2]; break; case CONSOLE_LINE_INPUT: - fg[0]=255; fg[1]=255; fg[2]=255; + UI_GetThemeColor3ubv(TH_CONSOLE_INPUT, fg); + fg[0], fg[1], fg[2]; break; case CONSOLE_LINE_INFO: - fg[0]=0; fg[1]=170; fg[2]=0; + UI_GetThemeColor3ubv(TH_CONSOLE_INFO, fg); + fg[0], fg[1], fg[2]; break; case CONSOLE_LINE_ERROR: - fg[0]=220; fg[1]=96; fg[2]=96; + UI_GetThemeColor3ubv(TH_CONSOLE_ERROR, fg); + fg[0], fg[1], fg[2]; break; } } |