NetworkStatus: use transparent view

Change-Id: I707f043e08b7f54de1304c7697e19621ff279c7c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2277
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
X512 2020-02-25 04:59:14 +09:00 committed by waddlesplash
parent 17a91a9886
commit 485a9ea0e6

View File

@ -232,18 +232,8 @@ void
NetworkStatusView::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);
if (ViewUIColor() != B_NO_COLOR)
SetLowUIColor(ViewUIColor());
else
SetLowColor(ViewColor());
SetViewColor(B_TRANSPARENT_COLOR);
start_watching_network(
B_WATCH_NETWORK_INTERFACE_CHANGES | B_WATCH_NETWORK_LINK_CHANGES, this);