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:
X512
2020-02-25 04:42:23 +00:00
committed by waddlesplash
parent 485a9ea0e6
commit f9b0390d8f
+2 -7
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());