1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-01 06:33:53 +01:00

Fix: Edit cursor coloring not being applied

This commit is contained in:
akleja
2021-07-19 18:59:04 +02:00
committed by GitHub
parent b88cda3893
commit 180ca1948b
2 changed files with 2 additions and 2 deletions

View File

@@ -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 );

View File

@@ -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());