diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-17 22:34:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-17 22:40:18 +0400 |
commit | a861e5572a70111bbe3ae84d82595eddc43b7d88 (patch) | |
tree | 67a40a99d66eba461db26f8a56f302798293e42e /source/blender/editors/interface/resources.c | |
parent | ec4e12d9a2f080aa7dfdd7375288f1804de1224d (diff) |
UI: Add theme color for viewport overlay
Was using wire or black in many places, this color is used for cursor,
camera guides, transform helper lines. So its possible to have a dark
background with light overlay color.
Patch D331 by Brita, with some edits.
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 4b7c25d8f54..a112106620f 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -268,6 +268,8 @@ const unsigned char *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colo case TH_GRID: cp = ts->grid; break; + case TH_VIEW_OVERLAY: + cp = ts->view_overlay; break; case TH_WIRE: cp = ts->wire; break; case TH_WIRE_EDIT: @@ -819,6 +821,7 @@ void ui_theme_init_default(void) rgba_char_args_set(btheme->tv3d.shade2, 0x7f, 0x70, 0x70, 100); rgba_char_args_set_fl(btheme->tv3d.grid, 0.251, 0.251, 0.251, 1.0); + rgba_char_args_set(btheme->tv3d.view_overlay, 0, 0, 0, 255); rgba_char_args_set(btheme->tv3d.wire, 0x0, 0x0, 0x0, 255); rgba_char_args_set(btheme->tv3d.wire_edit, 0x0, 0x0, 0x0, 255); rgba_char_args_set(btheme->tv3d.lamp, 0, 0, 0, 40); |