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>2004-10-08 02:50:21 +0400
committerTon Roosendaal <ton@blender.org>2004-10-08 02:50:21 +0400
commit74603782f650e00988fd8bb947de8b017cf01cfc (patch)
treeac81d562e60cdf36eac5e90988a551483bbb0ee5 /source/blender/src/interface_panel.c
parent1b46679eff18c8e3fde899c7b174e5231c06405b (diff)
Accidentally committed work in progress/experiment with panel tab colors.
Was not meant for cvs yet!
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r--source/blender/src/interface_panel.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c
index 4847a63d56e..2d486aac7fa 100644
--- a/source/blender/src/interface_panel.c
+++ b/source/blender/src/interface_panel.c
@@ -896,9 +896,9 @@ static void ui_draw_panel_header(uiBlock *block)
}
// tabbed, full header brighter
- BIF_ThemeColorShade(TH_HEADER, 0);
- uiSetRoundBox(3);
- uiRoundBox(block->minx, block->maxy, block->maxx, block->maxy+PNL_HEADER, 8);
+ //BIF_ThemeColorShade(TH_HEADER, 0);
+ //uiSetRoundBox(3);
+ //uiRoundBox(block->minx, block->maxy, block->maxx, block->maxy+PNL_HEADER, 8);
a= 0;
width= (panel->sizex - 3 - pnl_icons - PNL_ICON)/nr;
@@ -907,14 +907,14 @@ static void ui_draw_panel_header(uiBlock *block)
if(pa->active==0);
else if(pa==panel) {
/* active tab */
-
+
/* draw the active tab */
uiSetRoundBox(3);
- BIF_ThemeColorShade(TH_HEADER, -30);
+ BIF_ThemeColorShade(TH_HEADER, -3);
uiRoundBox(2+pnl_icons+a*width, panel->sizey-1, pnl_icons+(a+1)*width, panel->sizey+PNL_HEADER-3, 8);
/* draw the active text label */
- BIF_ThemeColor(TH_TEXT_HI);
+ BIF_ThemeColor(TH_TEXT);
ui_rasterpos_safe(16+pnl_icons+a*width, panel->sizey+4, block->aspect);
str= ui_block_cut_str(block, pa->panelname, (short)(width-10));
BIF_DrawString(block->curfont, str, (U.transopts & USER_TR_BUTTONS));
@@ -924,11 +924,11 @@ static void ui_draw_panel_header(uiBlock *block)
else if(pa->paneltab==panel) {
/* draw an inactive tab */
uiSetRoundBox(3);
- BIF_ThemeColorShade(TH_HEADER, -10);
+ BIF_ThemeColorShade(TH_HEADER, -60);
uiRoundBox(2+pnl_icons+a*width, panel->sizey, pnl_icons+(a+1)*width, panel->sizey+PNL_HEADER-3, 8);
/* draw an inactive tab label */
- BIF_ThemeColor(TH_TEXT);
+ BIF_ThemeColorShade(TH_TEXT_HI, -40);
ui_rasterpos_safe(16+pnl_icons+a*width, panel->sizey+4, block->aspect);
str= ui_block_cut_str(block, pa->panelname, (short)(width-10));
BIF_DrawString(block->curfont, str, (U.transopts & USER_TR_BUTTONS));
@@ -1060,6 +1060,9 @@ void ui_draw_panel(uiBlock *block)
}
/* floating panel */
else if(panel->control & UI_PNL_TRANSP) {
+ BIF_ThemeColorShade(TH_HEADER, -30);
+ uiSetRoundBox(3);
+ uiRoundBox(block->minx, block->maxy, block->maxx, block->maxy+PNL_HEADER, 8);
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glEnable(GL_BLEND);