Skip to content

Commit

Permalink
FileTypes: make middle bar darker
Browse files Browse the repository at this point in the history
... 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.
  • Loading branch information
jscipione committed Jun 27, 2014
1 parent ada54af commit c35a9fd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/preferences/filetypes/AttributeListView.cpp
@@ -1,6 +1,12 @@
/*
* Copyright 2006-2010, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2014 Haiku, Inc. All rights reserved.
*
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, axeld@pinc-software.de
* John Scipione, jscipione@gmail.com
*/


Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit c35a9fd

Please sign in to comment.