mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Improved loading state of transcribe button.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 }};
|
||||
|
||||
+1
-1
Submodule Telegram/lib_ui updated: b5b21bbcc5...22fe65cc24
Reference in New Issue
Block a user