diff options
author | Ton Roosendaal <ton@blender.org> | 2009-04-15 21:53:12 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-04-15 21:53:12 +0400 |
commit | 09015aa8aba073326e5c30060c5f8476bb0d5b24 (patch) | |
tree | c189ff1eefd626bb823d2e8fe5d29fe853664105 /source/blender/editors/interface/interface_panel.c | |
parent | 41dd360420e3b069077ef5c063988b102fcb04ca (diff) |
2.5
- Fun for testers: Added "Redo Operator" Panel in view3d 'nkey' region.
It's going to be part of tools UI I know, but this will give good
tests of what goes on with operators. I had to add small fixes in
Transform for it already. :)
One important issue to note is that it lists every operator, also from
non-3D-window ops. Needs checked or classified somehow.
- Fix: removed bad 2.4x hack from how pulldown menus were defined. Made
widget code cleaner, and will show menus like SHIFT+A correct now.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 261d36cf38e..9e7d13b68cc 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -584,11 +584,15 @@ static void ui_draw_panel_header_style(ARegion *ar, uiStyle *style, uiBlock *blo panelname= pa->drawname[0]?pa->drawname:pa->panelname; if(pa->active && (pa==panel || pa->paneltab==panel)) { + float col[3]; + + UI_GetThemeColor3fv(TH_TEXT, col); + /* active tab */ if(pa==panel) - UI_ThemeColor(TH_TEXT); + glColor4f(col[0], col[1], col[2], 1.0f); else - UI_ThemeColorBlend(TH_TEXT, TH_BACK, 0.5f); + glColor4f(col[0], col[1], col[2], 0.5f); hrect= *rect; hrect.xmin= rect->xmin+pnl_icons + a*width; |