From c35a9fd0a7c56ed052938684886cbbbb80c5e378 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 27 Jun 2014 18:51:11 -0400 Subject: [PATCH] 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. --- src/preferences/filetypes/AttributeListView.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/preferences/filetypes/AttributeListView.cpp b/src/preferences/filetypes/AttributeListView.cpp index 67cacefae3..b40525ee7c 100644 --- a/src/preferences/filetypes/AttributeListView.cpp +++ b/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 */ @@ -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));