[haiku-commits] haiku: hrev44271 - src/apps/networkstatus

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 26 Jun 2012 23:48:25 +0200 (CEST)

hrev44271 adds 1 changeset to branch 'master'
old head: b78760b964a5be4a9453a02c74ba742f87150908
new head: ff09c7bfdfc0ba76fa9fee6e1ba7207cca53420a

----------------------------------------------------------------------------

ff09c7b: Now is transparent on the desktop as other replicants.

                                   [ Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44271
Commit:      ff09c7bfdfc0ba76fa9fee6e1ba7207cca53420a
URL:         http://cgit.haiku-os.org/haiku/commit/?id=ff09c7b
Author:      Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
Date:        Tue Jun 26 21:46:51 2012 UTC

----------------------------------------------------------------------------

1 file changed, 6 insertions(+), 3 deletions(-)
src/apps/networkstatus/NetworkStatusView.cpp |    9 ++++++---

----------------------------------------------------------------------------

diff --git a/src/apps/networkstatus/NetworkStatusView.cpp 
b/src/apps/networkstatus/NetworkStatusView.cpp
index 69d1495..f3490d9 100644
--- a/src/apps/networkstatus/NetworkStatusView.cpp
+++ b/src/apps/networkstatus/NetworkStatusView.cpp
@@ -243,9 +243,12 @@ void
 NetworkStatusView::AttachedToWindow()
 {
        BView::AttachedToWindow();
-       if (Parent())
-               SetViewColor(Parent()->ViewColor());
-       else
+       if (Parent() != NULL) {
+               if ((Parent()->Flags() & B_DRAW_ON_CHILDREN) != 0)
+                       SetViewColor(B_TRANSPARENT_COLOR);
+               else
+                       SetViewColor(Parent()->ViewColor());
+       } else
                SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
 
        SetLowColor(ViewColor());


Other related posts:

  • » [haiku-commits] haiku: hrev44271 - src/apps/networkstatus - axeld