diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-20 22:15:06 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-20 22:15:06 +0400 |
commit | 824c9e92da9568b69f0c1552623fa06f7690fe40 (patch) | |
tree | 45e72a6769ef0a7eb3fd75373817d269dc2bc855 /source | |
parent | 382d802427acf6fd6d1947667a71d8024d84855d (diff) |
- fixed correct themecolor for popup menus
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 37e76c17824..2a744dbe383 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -760,6 +760,7 @@ static int ui_do_but_MENU(uiBut *but) block= uiNewBlock(&listb, "menu", UI_EMBOSSP, UI_HELV, but->win); block->flag= UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_NUMSELECT; + block->themecol= TH_MENU_ITEM; md= decompose_menu_string(but->str); @@ -1414,6 +1415,7 @@ static int ui_do_but_ICONROW(uiBut *but) /* here we go! */ block= uiNewBlock(&listb, "menu", UI_EMBOSSP, UI_HELV, but->win); block->flag= UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_NUMSELECT; + block->themecol= TH_MENU_ITEM; for(a=(int)but->min; a<=(int)but->max; a++) { uiDefIconBut(block, BUTM|but->pointype, but->retval, but->icon+(a-but->min), 0, (short)(18*a), (short)(but->x2-but->x1-4), 18, but->poin, (float)a, 0.0, 0, 0, ""); @@ -1446,6 +1448,7 @@ static int ui_do_but_ICONTEXTROW(uiBut *but) block= uiNewBlock(&listb, "menu", UI_EMBOSSP, UI_HELV, but->win); block->flag= UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_NUMSELECT; + block->themecol= TH_MENU_ITEM; md= decompose_menu_string(but->str); @@ -3738,6 +3741,7 @@ short pupmenu(char *instr) /* block stuff first, need to know the font */ block= uiNewBlock(&listb, "menu", UI_EMBOSSP, UI_HELV, G.curscreen->mainwin); uiBlockSetFlag(block, UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_RET_1|UI_BLOCK_NUMSELECT); + block->themecol= TH_MENU_ITEM; md= decompose_menu_string(instr); @@ -3849,6 +3853,7 @@ short pupmenu_col(char *instr, int maxrow) block= uiNewBlock(&listb, "menu", UI_EMBOSSP, UI_HELV, G.curscreen->mainwin); uiBlockSetFlag(block, UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_NUMSELECT); + block->themecol= TH_MENU_ITEM; md= decompose_menu_string(instr); |