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