DiskUsage: Change background color to parent one
* Fixes #7985. - GCI 2013
This commit is contained in:
committed by
Siarzhuk Zharski
parent
ab967391f4
commit
7470dfe2d3
@@ -101,8 +101,8 @@ void
|
||||
AppMenuItem::GetContentSize(float* _width, float* _height)
|
||||
{
|
||||
if (_width)
|
||||
*_width = fIcon->Bounds().Width() +
|
||||
be_plain_font->StringWidth(Label());
|
||||
*_width = fIcon->Bounds().Width()
|
||||
+ be_plain_font->StringWidth(Label());
|
||||
|
||||
if (_height) {
|
||||
struct font_height fh;
|
||||
@@ -166,6 +166,8 @@ void
|
||||
PieView::AttachedToWindow()
|
||||
{
|
||||
fWindow = (MainWindow*)Window();
|
||||
if (Parent())
|
||||
SetViewColor(Parent()->ViewColor());
|
||||
}
|
||||
|
||||
|
||||
@@ -354,8 +356,6 @@ PieView::_DrawProgressBar(BRect updateRect)
|
||||
|
||||
fMouseOverInfo.clear();
|
||||
|
||||
FillRect(updateRect, B_SOLID_LOW);
|
||||
|
||||
// Draw the progress bar.
|
||||
BRect b = Bounds();
|
||||
float bx = floorf((b.left + b.Width() - kProgBarWidth) / 2.0);
|
||||
@@ -388,9 +388,6 @@ PieView::_DrawPieChart(BRect updateRect)
|
||||
|
||||
pieRect.InsetBy(kPieOuterMargin, kPieOuterMargin);
|
||||
|
||||
SetHighColor(kPieBGColor);
|
||||
FillRect(updateRect);
|
||||
|
||||
// constraint proportions
|
||||
if (pieRect.Width() > pieRect.Height()) {
|
||||
float moveBy = (pieRect.Width() - pieRect.Height()) / 2;
|
||||
@@ -731,12 +728,10 @@ PieView::_ShowContextMenu(FileInfo* info, BPoint p)
|
||||
|
||||
fMouseOverMenu->RemoveItem(openWith);
|
||||
delete openWith;
|
||||
}
|
||||
else {
|
||||
} else
|
||||
// The file is no longer available.
|
||||
fFileUnavailableMenu->Go(p, false, true, openRect);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user