Now is transparent on the desktop as other replicants.

This commit is contained in:
Axel Dörfler
2012-06-26 23:48:01 +02:00
parent b78760b964
commit ff09c7bfdf
+5 -2
View File
@@ -243,9 +243,12 @@ void
NetworkStatusView::AttachedToWindow() NetworkStatusView::AttachedToWindow()
{ {
BView::AttachedToWindow(); BView::AttachedToWindow();
if (Parent()) if (Parent() != NULL) {
SetViewColor(Parent()->ViewColor()); if ((Parent()->Flags() & B_DRAW_ON_CHILDREN) != 0)
SetViewColor(B_TRANSPARENT_COLOR);
else else
SetViewColor(Parent()->ViewColor());
} else
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowColor(ViewColor()); SetLowColor(ViewColor());