git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4272 a95241bf-73f2-0310-859d-f6bbb57e9c96
22 lines
451 B
C++
22 lines
451 B
C++
#ifndef _MENU_ITEM_H
|
|
#include <MenuItem.h>
|
|
#endif
|
|
|
|
#ifndef COLOR_MENU_ITEM_H
|
|
#include "ColorMenuItem.h"
|
|
#endif
|
|
|
|
ColorMenuItem::ColorMenuItem(const char *label, rgb_color color,BMessage *message)
|
|
:BMenuItem(label, message,0,0){
|
|
fItemColor= color;
|
|
}
|
|
|
|
void ColorMenuItem::DrawContent(){
|
|
|
|
BMenu *menu= Menu();
|
|
rgb_color menuColor = menu->HighColor();
|
|
menu->SetHighColor(fItemColor);
|
|
BMenuItem::DrawContent();
|
|
menu->SetHighColor(menuColor);
|
|
}
|