PowerStatus: use transparent view
Change-Id: I04d988a54d0199e8c7dac37f5b78c6f1e2e0cadc Reviewed-on: https://review.haiku-os.org/c/haiku/+/2278 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -125,13 +125,8 @@ void
|
|||||||
PowerStatusView::AttachedToWindow()
|
PowerStatusView::AttachedToWindow()
|
||||||
{
|
{
|
||||||
BView::AttachedToWindow();
|
BView::AttachedToWindow();
|
||||||
if (Parent() != NULL) {
|
|
||||||
if ((Parent()->Flags() & B_DRAW_ON_CHILDREN) != 0)
|
SetViewColor(B_TRANSPARENT_COLOR);
|
||||||
SetViewColor(B_TRANSPARENT_COLOR);
|
|
||||||
else
|
|
||||||
AdoptParentColors();
|
|
||||||
} else
|
|
||||||
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
|
||||||
|
|
||||||
if (ViewUIColor() != B_NO_COLOR)
|
if (ViewUIColor() != B_NO_COLOR)
|
||||||
SetLowUIColor(ViewUIColor());
|
SetLowUIColor(ViewUIColor());
|
||||||
|
|||||||
Reference in New Issue
Block a user