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:
parent
17a91a9886
commit
485a9ea0e6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user