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_text.c')
-rw-r--r--source/blender/src/header_text.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/header_text.c b/source/blender/src/header_text.c
index c87f2d294c8..7287ffb0832 100644
--- a/source/blender/src/header_text.c
+++ b/source/blender/src/header_text.c
@@ -192,8 +192,10 @@ void text_buttons(void)
if (!st || st->spacetype != SPACE_TEXT) return;
sprintf(naam, "header %d", curarea->headwin);
- block= uiNewBlock(&curarea->uiblocks, naam, UI_EMBOSSX, UI_HELV, curarea->headwin);
- uiBlockSetCol(block, BUTGREY);
+ 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_TEXT;