BMenuField: use panel background color as default.

* There is no reason the BMenuField should behave differently from
  any BControl here.
This commit is contained in:
Axel Dörfler 2013-02-04 22:11:14 +01:00
parent 7ab100361f
commit 39b9d0f07f

View File

@ -1,5 +1,5 @@
/*
* Copyright 2001-2011, Haiku, Inc.
* Copyright 2001-2013, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
@ -408,6 +408,7 @@ void
BMenuField::AttachedToWindow()
{
CALLED();
rgb_color color;
BView* parent = Parent();
if (parent != NULL) {
@ -415,10 +416,11 @@ BMenuField::AttachedToWindow()
rgb_color color = parent->ViewColor();
if (color == B_TRANSPARENT_COLOR)
color = ui_color(B_PANEL_BACKGROUND_COLOR);
} else
color = ui_color(B_PANEL_BACKGROUND_COLOR);
SetViewColor(color);
SetLowColor(color);
}
SetViewColor(color);
SetLowColor(color);
}