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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user