1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Lighten colors slightly for sync-selection.

This commit is contained in:
businessmanprogrammersteve
2010-02-17 17:54:32 +00:00
parent c334b080e8
commit 5a6b7a4ec9
11 changed files with 61 additions and 25 deletions

View File

@@ -733,8 +733,17 @@ void LabelTrack::Draw(wxDC & dc, const wxRect & r, double h, double pps,
wxRect selr = r;
selr.x += before.width;
selr.width = int ((dsel1 - dsel0) * pps);
dc.SetBrush(AColor::labelSelectedBrush);
dc.SetPen(AColor::labelSelectedPen);
// If selection is synchro use synchro colors
if (IsSynchroSelected() && !GetSelected()) {
dc.SetBrush(AColor::labelSyncSelBrush);
dc.SetPen(AColor::labelSyncSelPen);
}
else {
dc.SetBrush(AColor::labelSelectedBrush);
dc.SetPen(AColor::labelSelectedPen);
}
dc.DrawRectangle(selr);
// If selection is synchro, draw in linked graphics