If we already figured out the correct low colow to use in AttachedToWindow(),
we might as well use it. Couldn't see any regressions so far. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35457 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8bb32d7ee0
commit
861e4437b1
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user