Applied patch from "HOST", with a few small style fixes myself.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22163 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood
2007-09-04 03:08:40 +00:00
parent af73a9fb93
commit f303cd6cc2
13 changed files with 305 additions and 349 deletions
+8 -6
View File
@@ -7,14 +7,14 @@
* Andrew Bachmann
*/
#include "ColorMenuItem.h"
#include <Message.h>
ColorMenuItem::ColorMenuItem(const char *label, rgb_color color, BMessage *message)
: BMenuItem(label, message, 0, 0)
, fItemColor(color)
{
fItemColor = color;
}
@@ -22,9 +22,11 @@ void
ColorMenuItem::DrawContent()
{
BMenu *menu = Menu();
rgb_color menuColor = menu->HighColor();
if (menu) {
rgb_color menuColor = menu->HighColor();
menu->SetHighColor(fItemColor);
BMenuItem::DrawContent();
menu->SetHighColor(menuColor);
menu->SetHighColor(fItemColor);
BMenuItem::DrawContent();
menu->SetHighColor(menuColor);
}
}