2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Allow non-colored and .tgs Lottie::Icon-s.

This commit is contained in:
John Preston
2022-01-05 15:09:21 +03:00
parent 43559fb6b7
commit 7b3cb0c3dd
3 changed files with 3 additions and 5 deletions

View File

@@ -289,10 +289,8 @@ void RenameBox(not_null<Ui::GenericBox*> box) {
Unexpected("Type in LottieForType.");
}();
const auto size = st::sessionBigLottieSize;
static const auto kWhite = style::owned_color(Qt::white);
return std::make_unique<Lottie::Icon>(Lottie::IconDescriptor{
.path = u":/icons/settings/devices/"_q + path + u".lottie"_q,
.color = kWhite.color(),
.sizeOverride = QSize(size, size),
.frame = 1,
});