mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Allow non-colored and .tgs Lottie::Icon-s.
This commit is contained in:
parent
43559fb6b7
commit
7b3cb0c3dd
3 changed files with 3 additions and 5 deletions
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -591,13 +591,13 @@ void CallMuteButton::refreshLabels() {
|
|||
void CallMuteButton::refreshIcons() {
|
||||
_icons[0].emplace(Lottie::IconDescriptor{
|
||||
.path = u":/icons/calls/voice.lottie"_q,
|
||||
.color = st::groupCallIconFg,
|
||||
.color = &st::groupCallIconFg,
|
||||
.sizeOverride = _st->lottieSize,
|
||||
.frame = (_iconState.index ? 0 : _iconState.frameTo),
|
||||
});
|
||||
_icons[1].emplace(Lottie::IconDescriptor{
|
||||
.path = u":/icons/calls/hands.lottie"_q,
|
||||
.color = st::groupCallIconFg,
|
||||
.color = &st::groupCallIconFg,
|
||||
.sizeOverride = _st->lottieSize,
|
||||
.frame = (_iconState.index ? _iconState.frameTo : 0),
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e1b707d128df046894753b99da44ac462ad52b96
|
||||
Subproject commit 5b576ba9b90f621b3dd965d44caf8bd71c00f6ae
|
Loading…
Add table
Reference in a new issue