mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-10 21:53:50 +00:00
Added animated icons to shared media and group call pin toasts.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user