diff --git a/src/kits/interface/Control.cpp b/src/kits/interface/Control.cpp index 4278288b6e..d293c6c1e7 100644 --- a/src/kits/interface/Control.cpp +++ b/src/kits/interface/Control.cpp @@ -145,6 +145,8 @@ BControl::AttachedToWindow() if (Parent()) { // inherit the color from parent rgb_color color = Parent()->ViewColor(); + if (color == B_TRANSPARENT_COLOR) + color = ui_color(B_PANEL_BACKGROUND_COLOR); SetViewColor(color); SetLowColor(color);