diff --git a/src/kits/interface/Button.cpp b/src/kits/interface/Button.cpp index 6964e8a21a..6f36567fed 100644 --- a/src/kits/interface/Button.cpp +++ b/src/kits/interface/Button.cpp @@ -105,12 +105,8 @@ BButton::Draw(BRect updateRect) { if (be_control_look != NULL) { BRect rect(Bounds()); - rgb_color background = B_TRANSPARENT_COLOR; - if (Parent()) - background = Parent()->ViewColor(); - if (background == B_TRANSPARENT_COLOR) - background = ui_color(B_PANEL_BACKGROUND_COLOR); - rgb_color base = LowColor(); + rgb_color background = LowColor(); + rgb_color base = background; uint32 flags = be_control_look->Flags(this); if (IsDefault()) flags |= BControlLook::B_DEFAULT_BUTTON; diff --git a/src/kits/interface/StatusBar.cpp b/src/kits/interface/StatusBar.cpp index bd5f8eb682..5243a5af5e 100644 --- a/src/kits/interface/StatusBar.cpp +++ b/src/kits/interface/StatusBar.cpp @@ -278,11 +278,7 @@ BStatusBar::FrameResized(float newWidth, float newHeight) void BStatusBar::Draw(BRect updateRect) { - rgb_color backgroundColor; - if (Parent()) - backgroundColor = Parent()->ViewColor(); - else - backgroundColor = ui_color(B_PANEL_BACKGROUND_COLOR); + rgb_color backgroundColor = LowColor(); font_height fontHeight; GetFontHeight(&fontHeight);