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.
|
||||
*
|
||||
* 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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user