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:
authorTon Roosendaal <ton@blender.org>2003-10-23 03:20:44 +0400
committerTon Roosendaal <ton@blender.org>2003-10-23 03:20:44 +0400
commit164fa06c1178a756806f1b42850ad3d197a2577d (patch)
tree0883ad64c8733b1dac0af446c72d85f3bfb1333e /source/blender/src/drawseq.c
parentd213b7d0db428ed010d8f3f633443c94376837fc (diff)
- themed all window types... phew!
BTW: text colors don't work everywhere yet... but this state should be save to store themes in your .B.blend (CTRL+X) and some fixes: - leftmouse click now works in NLA and Action window to select a strip in the left part - faceselect+vpaint mode didnt show both panels
Diffstat (limited to 'source/blender/src/drawseq.c')
-rw-r--r--source/blender/src/drawseq.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/src/drawseq.c b/source/blender/src/drawseq.c
index 76371a52e6d..d1c41eebc23 100644
--- a/source/blender/src/drawseq.c
+++ b/source/blender/src/drawseq.c
@@ -66,6 +66,7 @@
#include "BIF_drawseq.h"
#include "BIF_editseq.h"
#include "BIF_drawimage.h"
+#include "BIF_resources.h"
#include "BSE_view.h"
#include "BSE_drawipo.h"
@@ -495,7 +496,7 @@ static void draw_extra_seqinfo(void)
xfac/= (float)(G.v2d->mask.xmax-G.v2d->mask.xmin);
xco= G.v2d->cur.xmin+40*xfac;
- cpack(0);
+ BIF_ThemeColor(TH_TEXT);
/* NAME */
glRasterPos3f(xco, 0.3, 0.0);
@@ -582,6 +583,7 @@ void drawseqspace(ScrArea *sa, void *spacedata)
SpaceSeq *sseq;
Editing *ed;
Sequence *seq;
+ float col[3];
int ofsx, ofsy;
ed= G.scene->ed;
@@ -591,9 +593,10 @@ void drawseqspace(ScrArea *sa, void *spacedata)
draw_image_seq();
return;
}
-
- if(ed && ed->metastack.first) glClearColor(0.5, 0.5, 0.4, 0.0);
- else glClearColor(.40625, .40625, .40625, 0.0);
+
+ BIF_GetThemeColor3fv(TH_BACK, col);
+ if(ed && ed->metastack.first) glClearColor(col[0], col[1], col[2]-1.0, 0.0);
+ else glClearColor(col[0], col[1], col[2], 0.0);
glClear(GL_COLOR_BUFFER_BIT);
@@ -611,7 +614,7 @@ void drawseqspace(ScrArea *sa, void *spacedata)
myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);
- cpack(0x585858);
+ BIF_ThemeColorShade(TH_BACK, -20);
glRectf(G.v2d->cur.xmin, 0.0, G.v2d->cur.xmax, 1.0);
boundbox_seq();