diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-09 02:18:32 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-09 02:18:32 +0300 |
commit | a149109a5e4ddf94b349d498d08f5d7be25963b1 (patch) | |
tree | 91947fbf5a379b54e5e02c43c2052b65066e17df /source | |
parent | be68e2b793c3f016cf7e08122de2ff03b742a098 (diff) |
- added panel backdrop for buttonswin to themes
- made hilite of headers a tinsy bit subtler
- opengl render (icon 3d window) uses theme for backdrop
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/drawview.c | 4 | ||||
-rw-r--r-- | source/blender/src/resources.c | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c index b094f5081d0..ba06475ddad 100644 --- a/source/blender/src/drawview.c +++ b/source/blender/src/drawview.c @@ -1748,7 +1748,9 @@ void drawview3d_render(struct View3D *v3d) if (v3d->drawtype==OB_TEXTURE && G.scene->world) { glClearColor(G.scene->world->horr, G.scene->world->horg, G.scene->world->horb, 0.0); } else { - glClearColor(0.45, 0.45, 0.45, 0.0); + float col[3]; + BIF_GetThemeColor3fv(TH_BACK, col); + glClearColor(col[0], col[1], col[2], 0.0); } glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); diff --git a/source/blender/src/resources.c b/source/blender/src/resources.c index 9746a80982b..433827da01e 100644 --- a/source/blender/src/resources.c +++ b/source/blender/src/resources.c @@ -389,9 +389,9 @@ char *BIF_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid) case TH_HEADERDESEL: /* we calculate a dynamic builtin header deselect color, also for pulldowns... */ cp= ts->header; - headerdesel[0]= cp[0]>20?cp[0]-20:0; - headerdesel[1]= cp[1]>20?cp[1]-20:0; - headerdesel[2]= cp[2]>20?cp[2]-20:0; + headerdesel[0]= cp[0]>10?cp[0]-10:0; + headerdesel[1]= cp[1]>10?cp[1]-10:0; + headerdesel[2]= cp[2]>10?cp[2]-10:0; cp= headerdesel; break; case TH_PANEL: @@ -673,6 +673,9 @@ char *BIF_ThemeColorsPup(int spacetype) else if(spacetype==SPACE_SOUND) { sprintf(str, "Window slider %%x%d|", TH_SHADE1); strcat(cp, str); } + else if(spacetype==SPACE_BUTS) { + sprintf(str, "Panel %%x%d|", TH_PANEL); strcat(cp, str); + } else if(spacetype==SPACE_IMASEL) { sprintf(str, "Main Shade %%x%d|", TH_SHADE1); strcat(cp, str); } |