From 09015aa8aba073326e5c30060c5f8476bb0d5b24 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 15 Apr 2009 17:53:12 +0000 Subject: 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. --- source/blender/editors/interface/interface_panel.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/interface/interface_panel.c') 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; -- cgit v1.2.3