feat: add lottie icons support in context menu

Co-authored-by: MaxPlays35 <35427519+maxplays35@users.noreply.github.com>
This commit is contained in:
ZavaruKitsu 2023-08-28 15:07:50 +00:00
parent 58e1c9ff54
commit c226311126
4 changed files with 33 additions and 1 deletions

View file

@ -102,6 +102,8 @@ PRIVATE
ayu/ayu_lang.cpp
ayu/ayu_lang.h
ayu/ayu_constants.h
ayu/ui/ayu_lottie.cpp
ayu/ui/ayu_lottie.h
ayu/ui/utils/ayu_profile_values.cpp
ayu/ui/utils/ayu_profile_values.h
ayu/ui/settings/settings_ayu.cpp

View file

@ -0,0 +1,16 @@
// This is the source code of AyuGram for Desktop.
//
// We do not and cannot prevent the use of our code,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
#include "ayu_lottie.h"
namespace AyuUi {
std::unique_ptr<Lottie::Icon> getLottie(const QString& text) {
// todo: some kind of mapping
// Lottie::MakeIcon({.json = QString(), .sizeOverride = {24, 24}});
return nullptr;
}
}

View file

@ -0,0 +1,14 @@
// This is the source code of AyuGram for Desktop.
//
// We do not and cannot prevent the use of our code,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
#pragma once
#include "lottie/lottie_icon.h"
namespace AyuUi {
std::unique_ptr<Lottie::Icon> getLottie(const QString& text);
}

@ -1 +1 @@
Subproject commit 477f5905d6a4bccfa1a40ca7ed6d88d9b4c0804e
Subproject commit 12b4a546842f538511753827c4c601b83b280d1c