mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Replaced static reaction icon in settings with animated lottie.
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user