FileTypes: make middle bar darker

... matching the rest of the list view borders.

* Don't draw the middle bar in DrawItem(), that already happens in
  owner->Draw(), no reason to draw it twice.
* Update copyright header.
This commit is contained in:
John Scipione
2014-06-27 19:05:51 -04:00
parent ada54af0c9
commit c35a9fd0a7
@@ -1,6 +1,12 @@
/*
* Copyright 2006-2010, Axel Dörfler, [email protected].
* Copyright 2014 Haiku, Inc. All rights reserved.
*
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, [email protected]
* John Scipione, [email protected]
*/
@@ -212,9 +218,6 @@ AttributeItem::DrawItem(BView* owner, BRect frame, bool drawEverything)
owner->SetHighColor(tint_color(owner->ViewColor(), B_DARKEN_1_TINT));
float middle = frame.left + frame.Width() / 2.0f;
owner->StrokeLine(BPoint(middle, 0.0f), BPoint(middle, frame.bottom));
owner->SetHighColor(highColor);
owner->SetLowColor(lowColor);
}
@@ -373,7 +376,8 @@ AttributeListView::Draw(BRect updateRect)
{
BListView::Draw(updateRect);
SetHighColor(tint_color(ViewColor(), B_DARKEN_1_TINT));
SetHighColor(tint_color(ui_color(B_PANEL_BACKGROUND_COLOR),
B_DARKEN_2_TINT));
float middle = Bounds().Width() / 2.0f;
StrokeLine(BPoint(middle, 0.0f), BPoint(middle, Bounds().bottom));