mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
Fix: Edit cursor coloring not being applied
This commit is contained in:
parent
b88cda3893
commit
180ca1948b
@ -467,7 +467,7 @@ wxColour CursorColour( )
|
||||
|
||||
// Pen colour is fine, if there is plenty of contrast.
|
||||
if( d > 200 )
|
||||
return clrCursorPen;
|
||||
return theTheme.Colour( clrCursorPen );
|
||||
|
||||
// otherwise return same colour as a selection.
|
||||
return theTheme.Colour( clrSelected );
|
||||
|
@ -121,7 +121,7 @@ void EditCursorOverlay::Draw(OverlayPanel &panel, wxDC &dc)
|
||||
}
|
||||
else if (auto ruler = dynamic_cast<AdornedRulerPanel*>(&panel)) {
|
||||
wxASSERT(!mIsMaster);
|
||||
dc.SetPen(*wxBLACK_PEN);
|
||||
AColor::CursorColor(&dc);
|
||||
// AColor::Line includes both endpoints so use GetBottom()
|
||||
auto rect = ruler->GetInnerRect();
|
||||
AColor::Line(dc, mLastCursorX, rect.GetTop(), mLastCursorX, rect.GetBottom());
|
||||
|
Loading…
x
Reference in New Issue
Block a user