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:
parent
7ab100361f
commit
39b9d0f07f
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2001-2011, Haiku, Inc.
|
* Copyright 2001-2013, Haiku, Inc.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@ -408,6 +408,7 @@ void
|
|||||||
BMenuField::AttachedToWindow()
|
BMenuField::AttachedToWindow()
|
||||||
{
|
{
|
||||||
CALLED();
|
CALLED();
|
||||||
|
rgb_color color;
|
||||||
|
|
||||||
BView* parent = Parent();
|
BView* parent = Parent();
|
||||||
if (parent != NULL) {
|
if (parent != NULL) {
|
||||||
@ -415,10 +416,11 @@ BMenuField::AttachedToWindow()
|
|||||||
rgb_color color = parent->ViewColor();
|
rgb_color color = parent->ViewColor();
|
||||||
if (color == B_TRANSPARENT_COLOR)
|
if (color == B_TRANSPARENT_COLOR)
|
||||||
color = ui_color(B_PANEL_BACKGROUND_COLOR);
|
color = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||||
|
} else
|
||||||
|
color = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||||
|
|
||||||
SetViewColor(color);
|
SetViewColor(color);
|
||||||
SetLowColor(color);
|
SetLowColor(color);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user