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/space_view3d/view3d_fly.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/space_view3d/view3d_fly.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_fly.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_fly.c b/source/blender/editors/space_view3d/view3d_fly.c index a5aecbc1317..6afe0ef896f 100644 --- a/source/blender/editors/space_view3d/view3d_fly.c +++ b/source/blender/editors/space_view3d/view3d_fly.c @@ -51,6 +51,8 @@ #include "PIL_time.h" /* smoothview */ +#include "UI_resources.h" + #include "view3d_intern.h" /* own include */ /* NOTE: these defines are saved in keymap files, do not change values but just add new ones */ @@ -248,8 +250,8 @@ static void drawFlyPixel(const struct bContext *UNUSED(C), ARegion *UNUSED(ar), y1 = yoff + 0.45f * fly->height; x2 = xoff + 0.55f * fly->width; y2 = yoff + 0.55f * fly->height; - cpack(0); + UI_ThemeColor(TH_VIEW_OVERLAY); glBegin(GL_LINES); /* bottom left */ glVertex2f(x1, y1); |