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:
Diffstat (limited to 'source/blender/src/header_ipo.c')
-rw-r--r--source/blender/src/header_ipo.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/header_ipo.c b/source/blender/src/header_ipo.c
index ce6c9e69582..a9811c1a8c4 100644
--- a/source/blender/src/header_ipo.c
+++ b/source/blender/src/header_ipo.c
@@ -63,6 +63,8 @@
#include "BIF_interface.h"
#include "BIF_resources.h"
#include "BIF_screen.h"
+#include "BIF_space.h"
+
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_material.h"
@@ -207,8 +209,10 @@ void ipo_buttons(void)
char naam[20];
sprintf(naam, "header %d", curarea->headwin);
- block= uiNewBlock(&curarea->uiblocks, naam, UI_EMBOSSX, UI_HELV, curarea->headwin);
- uiBlockSetCol(block, BUTSALMON);
+ block= uiNewBlock(&curarea->uiblocks, naam, UI_EMBOSS, UI_HELV, curarea->headwin);
+
+ if(area_is_active_area(curarea)) uiBlockSetCol(block, TH_HEADER);
+ else uiBlockSetCol(block, TH_HEADERDESEL);
curarea->butspacetype= SPACE_IPO;