1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-16 06:03:49 +01:00

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)
This commit is contained in:
Paul Licameli
2018-09-15 16:43:40 -04:00
parent 1ea05b6cc9
commit 5d174b2126

View File

@@ -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);