1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 01:21:16 +02:00

P & R recording: change color of pin button, as for play indicator

This commit is contained in:
Paul Licameli
2018-08-11 00:09:26 -04:00
parent 0d9972b3e0
commit 3f1d9ab8c1
4 changed files with 24 additions and 5 deletions

View File

@@ -3287,7 +3287,8 @@ void AdornedRulerPanel::UpdateButtonStates()
pinButton->PopUp();
else
pinButton->PushDown();
pinButton->SetAlternateIdx((mIsRecording ? 2 : 0) + (state ? 0 : 1));
pinButton->SetAlternateIdx(
(gAudioIO->IsCapturing() ? 2 : 0) + (state ? 0 : 1));
// Bug 1584: Toltip now shows what clicking will do.
const auto label = state
? _("Click to unpin")