mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Pinned/Unpinned button now affects PlayHead.
Bug 1451 comment 6 asks for PlayHead to change too with the change in the button icon on up/down, making the action of the button clearer. This change does not though change the icon on the button to red when recording. It stays green, though the PlayHead does change correctly.
This commit is contained in:
@@ -3203,6 +3203,21 @@ void AdornedRulerPanel::DoDrawIndicator
|
||||
dc->DrawPolygon( 3, tri );
|
||||
}
|
||||
else {
|
||||
// synonyms... (makes compatibility with DarkAudacity easier).
|
||||
#define bmpPlayPointerPinned bmpPinnedPlayHead
|
||||
#define bmpPlayPointer bmpUnpinnedPlayHead
|
||||
#define bmpRecordPointerPinned bmpPinnedRecordHead
|
||||
#define bmpRecordPointer bmpUnpinnedRecordHead
|
||||
|
||||
bool pinned = TracksPrefs::GetPinnedHeadPreference();
|
||||
wxBitmap & bmp = theTheme.Bitmap( pinned ?
|
||||
(playing ? bmpPlayPointerPinned : bmpRecordPointerPinned) :
|
||||
(playing ? bmpPlayPointer : bmpRecordPointer)
|
||||
);
|
||||
const int IndicatorHalfWidth = bmp.GetWidth() / 2;
|
||||
dc->DrawBitmap( bmp, xx - IndicatorHalfWidth -1, mInner.y );
|
||||
#if 0
|
||||
|
||||
// Down pointing triangle
|
||||
auto height = IndicatorHeightForWidth(width);
|
||||
const int IndicatorHalfWidth = width / 2;
|
||||
@@ -3213,6 +3228,7 @@ void AdornedRulerPanel::DoDrawIndicator
|
||||
tri[ 2 ].x = xx;
|
||||
tri[ 2 ].y = mInner.y + height;
|
||||
dc->DrawPolygon( 3, tri );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user