Improved loading state of transcribe button.

This commit is contained in:
23rd
2025-12-29 19:03:17 +03:00
parent 8bf30e67a9
commit 4e2114e2fe
3 changed files with 11 additions and 3 deletions
@@ -79,10 +79,10 @@ void TranscribeButton::setLoading(bool loading, Fn<void()> update) {
if (_loading) {
_animation = std::make_unique<Ui::InfiniteRadialAnimation>(
update,
st::defaultInfiniteRadialAnimation);
st::historyTranscribeRadialAnimation);
_animation->start();
} else if (_animation) {
_animation->stop();
_animation->stopWithFade();
}
}
+8
View File
@@ -544,6 +544,14 @@ historyTranscribeOutLockSelected: icon {{ "chat/mini_lock", msgFileOutBgSelected
historyTranscribeLockPos: point(17px, 9px);
historyTranscribeLockOverlayPos: point(19px, 11px);
historyTranscribeLockOverlaySize: size(5px, 10px);
historyTranscribeRadialAnimation: InfiniteRadialAnimation(defaultInfiniteRadialAnimation) {
linearPeriod: 700;
sinePeriod: 2400;
sineDuration: 700;
sineShift: 1100;
arcMin: 0.0625;
arcMax: 0.35;
}
historyVideoMessageMute: icon {{ "volume_mute", historyFileThumbIconFg }};
historyVideoMessageMuteSelected: icon {{ "volume_mute", historyFileThumbIconFgSelected }};