mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 09:00:52 +02:00
Ensure colours of rulers and TimeTrack background update after a theme change.
This commit is contained in:
parent
7661d179ba
commit
60a53d560b
@ -275,8 +275,9 @@ void TimeTrack::Draw(wxDC & dc, const wxRect & r, const ZoomInfo &zoomInfo) cons
|
|||||||
min = max;
|
min = max;
|
||||||
}
|
}
|
||||||
|
|
||||||
dc.SetBrush(blankBrush);
|
//dc.SetBrush(blankBrush);
|
||||||
dc.SetPen(blankPen);
|
//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.
|
||||||
@ -291,6 +292,7 @@ void TimeTrack::Draw(wxDC & dc, const wxRect & r, const ZoomInfo &zoomInfo) cons
|
|||||||
// LL: It's because the ruler only Invalidate()s when the NEW value is different
|
// LL: It's because the ruler only Invalidate()s when the NEW value is different
|
||||||
// than the current value.
|
// than the current value.
|
||||||
mRuler->SetFlip(GetHeight() > 75 ? true : true); // MB: so why don't we just call Invalidate()? :)
|
mRuler->SetFlip(GetHeight() > 75 ? true : true); // MB: so why don't we just call Invalidate()? :)
|
||||||
|
mRuler->SetTickColour( theTheme.Colour( clrTrackPanelText ));
|
||||||
mRuler->Draw(dc, this);
|
mRuler->Draw(dc, this);
|
||||||
|
|
||||||
Doubles envValues{ size_t(mid.width) };
|
Doubles envValues{ size_t(mid.width) };
|
||||||
|
@ -545,7 +545,7 @@ void TrackArtist::DrawVRuler(const Track *t, wxDC * dc, wxRect & rect)
|
|||||||
}
|
}
|
||||||
|
|
||||||
UpdateVRuler(t, rr);
|
UpdateVRuler(t, rr);
|
||||||
|
vruler->SetTickColour( theTheme.Colour( clrTrackPanelText ));
|
||||||
vruler->Draw(*dc);
|
vruler->Draw(*dc);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -569,7 +569,7 @@ void TrackArtist::DrawVRuler(const Track *t, wxDC * dc, wxRect & rect)
|
|||||||
}
|
}
|
||||||
|
|
||||||
UpdateVRuler(t, rr);
|
UpdateVRuler(t, rr);
|
||||||
|
vruler->SetTickColour( theTheme.Colour( clrTrackPanelText ));
|
||||||
vruler->Draw(*dc);
|
vruler->Draw(*dc);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user