mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +02:00
Draw TimeTrack Background in unselected colour.
Using blank colour is incorrect here. I also removed an unused pen and brush.
This commit is contained in:
parent
c9183769d2
commit
ff3ed65d83
@ -59,9 +59,6 @@ TimeTrack::TimeTrack(const std::shared_ptr<DirManager> &projDirManager, const Zo
|
|||||||
mRuler->SetUseZoomInfo(0, mZoomInfo);
|
mRuler->SetUseZoomInfo(0, mZoomInfo);
|
||||||
mRuler->SetLabelEdges(false);
|
mRuler->SetLabelEdges(false);
|
||||||
mRuler->SetFormat(Ruler::TimeFormat);
|
mRuler->SetFormat(Ruler::TimeFormat);
|
||||||
|
|
||||||
blankBrush.SetColour(theTheme.Colour( clrBlank));
|
|
||||||
blankPen.SetColour(theTheme.Colour( clrBlank));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TimeTrack::TimeTrack(const TimeTrack &orig, double *pT0, double *pT1)
|
TimeTrack::TimeTrack(const TimeTrack &orig, double *pT0, double *pT1)
|
||||||
@ -88,9 +85,6 @@ TimeTrack::TimeTrack(const TimeTrack &orig, double *pT0, double *pT1)
|
|||||||
mRuler->SetUseZoomInfo(0, mZoomInfo);
|
mRuler->SetUseZoomInfo(0, mZoomInfo);
|
||||||
mRuler->SetLabelEdges(false);
|
mRuler->SetLabelEdges(false);
|
||||||
mRuler->SetFormat(Ruler::TimeFormat);
|
mRuler->SetFormat(Ruler::TimeFormat);
|
||||||
|
|
||||||
blankBrush.SetColour(214, 214, 214);
|
|
||||||
blankPen.SetColour(214, 214, 214);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the track metadata but not the contents.
|
// Copy the track metadata but not the contents.
|
||||||
@ -275,9 +269,7 @@ void TimeTrack::Draw(wxDC & dc, const wxRect & r, const ZoomInfo &zoomInfo) cons
|
|||||||
min = max;
|
min = max;
|
||||||
}
|
}
|
||||||
|
|
||||||
//dc.SetBrush(blankBrush);
|
AColor::UseThemeColour( &dc, clrUnselected );
|
||||||
//dc.SetPen(blankPen);
|
|
||||||
AColor::UseThemeColour( &dc, clrTrackBackground );
|
|
||||||
dc.DrawRectangle(r);
|
dc.DrawRectangle(r);
|
||||||
|
|
||||||
//copy this rectangle away for future use.
|
//copy this rectangle away for future use.
|
||||||
|
@ -146,9 +146,6 @@ class TimeTrack final : public Track {
|
|||||||
Track::Holder Duplicate() const override;
|
Track::Holder Duplicate() const override;
|
||||||
|
|
||||||
friend class TrackFactory;
|
friend class TrackFactory;
|
||||||
|
|
||||||
wxBrush blankBrush;
|
|
||||||
wxPen blankPen;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user