mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 07:39:29 +02:00
Fix Red and Green in Scrubbing
We have a policy in how we use red and green in the UI, so these colors in scrubbing were changed to 'orange' and 'lime'.
This commit is contained in:
parent
436fc86159
commit
b51d3b2055
@ -7390,14 +7390,18 @@ void TrackPanel::DrawScrubSpeed(wxDC &dc)
|
||||
yy += height + 2 * offset;
|
||||
yy = std::max(0, std::min(panelHeight - height, yy));
|
||||
|
||||
// To do, theming?
|
||||
static const wxColour red(255, 0, 0), green(0, 255, 0);
|
||||
// These two colors were previously saturated red and green. However
|
||||
// we have a rule to try to only use red for reserved purposes of
|
||||
// (a) Recording
|
||||
// (b) Error alerts
|
||||
// So they were changed to 'orange' and 'lime'.
|
||||
static const wxColour clrNoScroll(215, 162, 0), clrScroll(0, 204, 153);
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_SMOOTH_SCROLL
|
||||
if (mSmoothScrollingScrub)
|
||||
dc.SetTextForeground(green);
|
||||
dc.SetTextForeground(clrScroll);
|
||||
else
|
||||
#endif
|
||||
dc.SetTextForeground(red);
|
||||
dc.SetTextForeground(clrNoScroll);
|
||||
dc.DrawText(text, xx, yy);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user