2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replaced static reaction icon in settings with animated lottie.

This commit is contained in:
23rd
2022-04-13 19:20:30 +03:00
committed by John Preston
parent 9380c4bbc3
commit 59fc9d3bfd
7 changed files with 214 additions and 175 deletions

View File

@@ -182,13 +182,11 @@ QImage Reactions::resolveImageFor(
if (set.bottomInfo.isNull() && set.icon) {
resolve(set.bottomInfo, st::reactionInfoImage);
resolve(set.inlineList, st::reactionInlineImage);
resolve(set.settings, st::reactionSettingsImage);
crl::async([icon = std::move(set.icon)]{});
}
switch (size) {
case ImageSize::BottomInfo: return set.bottomInfo;
case ImageSize::InlineList: return set.inlineList;
case ImageSize::Settings: return set.settings;
}
Unexpected("ImageSize in Reactions::resolveImageFor.");
}