From 5d174b2126358b55c4839238e59ad8e427267fb9 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 15 Sep 2018 16:43:40 -0400 Subject: [PATCH] Minor corrections to TrackPanel drawing... ... Use correct symbolic constants in three places (no effect); use proper theme color for the two pixels per track that are left of and above the shadow (small effect when not Classic theme) --- src/TrackPanel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 1c6272018..2fa92472b 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -1787,8 +1787,8 @@ void TrackPanel::DrawOutsideOfTrack // Area between panel border and right track border side = rect; - side.x += side.width - kTopInset; - side.width = kTopInset; + side.x += side.width - kRightInset; + side.width = kRightInset; dc->DrawRectangle(side); // Area between tracks of stereo group @@ -2076,7 +2076,7 @@ void TrackPanel::DrawShadow(const Track * /* t */ , wxDC * dc, const wxRect & re AColor::Line(*dc, right, rect.y, right, bottom); // background color erases small parts of those lines - AColor::Dark(dc, false); + AColor::TrackPanelBackground(dc, false); // bottom-left AColor::Line(*dc, rect.x, bottom, rect.x + 1, bottom); @@ -2534,7 +2534,7 @@ void TrackInfo::DrawBackground(wxDC * dc, const wxRect & rect, bool bSelected, // fill in label wxRect fill = rect; - fill.width = labelw-4; + fill.width = labelw - kLeftInset; AColor::MediumTrackInfo(dc, bSelected); dc->DrawRectangle(fill);