Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-10-09 14:41:51 +0400
committerJoshua Leung <aligorith@gmail.com>2012-10-09 14:41:51 +0400
commit27aa05ec36e85cedad81490189f706e9c709387c (patch)
tree9a692d6ddf2ea579b995a156e962c6f1dfb41c5a /source/blender
parentfca582a2da1998819434021d26de69ef34748591 (diff)
Autokey warning - trying with a slight "calmer" color
Now it uses the same color used for indicating keyframes instead of using "error" indications.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/transform/transform.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 273d8913497..5e31de96e0e 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -1569,8 +1569,8 @@ static void drawAutoKeyWarning(TransInfo *t, ARegion *ar)
{
int show_warning;
- /* red border around the viewport */
- UI_ThemeColor(TH_REDALERT);
+ /* colored border around the viewport */
+ UI_ThemeColor(TH_VERTEX_SELECT);
glBegin(GL_LINE_LOOP);
glVertex2f(1, 1);
@@ -1596,8 +1596,10 @@ static void drawAutoKeyWarning(TransInfo *t, ARegion *ar)
xco = ar->winx - BLF_width_default(printable) - 10;
yco = ar->winy - BLF_height_default(printable) - 10;
- /* red warning text */
- UI_ThemeColor(TH_REDALERT);
+ /* warning text (to clarify meaning of overlays)
+ * - original color was red to match the icon, but that clashes badly with a less nasty border
+ */
+ UI_ThemeColor(TH_VERTEX_SELECT);
BLF_draw_default_ascii(xco, ar->winy - 17, 0.0f, printable, sizeof(printable));
/* autokey recording icon... */