PowerStatus: use transparent view

Change-Id: I04d988a54d0199e8c7dac37f5b78c6f1e2e0cadc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2278
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
X512 2020-02-25 05:10:07 +09:00 committed by waddlesplash
parent 485a9ea0e6
commit f9b0390d8f

View File

@ -125,13 +125,8 @@ void
PowerStatusView::AttachedToWindow()
{
BView::AttachedToWindow();
if (Parent() != NULL) {
if ((Parent()->Flags() & B_DRAW_ON_CHILDREN) != 0)
SetViewColor(B_TRANSPARENT_COLOR);
else
AdoptParentColors();
} else
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
SetViewColor(B_TRANSPARENT_COLOR);
if (ViewUIColor() != B_NO_COLOR)
SetLowUIColor(ViewUIColor());