Added animated icons to shared media and group call pin toasts.

This commit is contained in:
23rd
2026-06-24 20:20:07 +03:00
parent bbcc5fc68f
commit 39cfbeaffa
2 changed files with 14 additions and 3 deletions
@@ -68,6 +68,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "webrtc/webrtc_audio_input_tester.h"
#include "webrtc/webrtc_create_adm.h"
#include "styles/style_calls.h"
#include "styles/style_chat_helpers.h"
#include "styles/style_layers.h"
#include <QtWidgets/QApplication>
@@ -1425,9 +1426,15 @@ void Panel::createPinOnTop() {
pin ? &st::groupCallPinnedOnTop : nullptr,
pin ? &st::groupCallPinnedOnTop : nullptr);
if (!_pinOnTop->isHidden()) {
uiShow()->showToast({ pin
? tr::lng_group_call_pinned_on_top(tr::now)
: tr::lng_group_call_unpinned_on_top(tr::now) });
uiShow()->showToast({
.text = { pin
? tr::lng_group_call_pinned_on_top(tr::now)
: tr::lng_group_call_unpinned_on_top(tr::now) },
.iconLottie = pin
? u"toast/pin"_q
: u"toast/unpin"_q,
.iconLottieSize = st::toastLottieIconSize,
});
}
}
};
@@ -2045,6 +2045,10 @@ Ui::Toast::Config PrepareTogglePinToast(
tr::now,
lt_count,
count))) },
.iconLottie = pin
? u"toast/pin"_q
: u"toast/unpin"_q,
.iconLottieSize = st::toastLottieIconSize,
.st = &st::storiesActionToast,
.duration = (pin
? Data::Stories::kInProfileToastDuration