mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
feat: add lottie icons support in context menu
Co-authored-by: MaxPlays35 <35427519+maxplays35@users.noreply.github.com>
This commit is contained in:
parent
58e1c9ff54
commit
c226311126
4 changed files with 33 additions and 1 deletions
|
@ -102,6 +102,8 @@ PRIVATE
|
||||||
ayu/ayu_lang.cpp
|
ayu/ayu_lang.cpp
|
||||||
ayu/ayu_lang.h
|
ayu/ayu_lang.h
|
||||||
ayu/ayu_constants.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.cpp
|
||||||
ayu/ui/utils/ayu_profile_values.h
|
ayu/ui/utils/ayu_profile_values.h
|
||||||
ayu/ui/settings/settings_ayu.cpp
|
ayu/ui/settings/settings_ayu.cpp
|
||||||
|
|
16
Telegram/SourceFiles/ayu/ui/ayu_lottie.cpp
Normal file
16
Telegram/SourceFiles/ayu/ui/ayu_lottie.cpp
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
14
Telegram/SourceFiles/ayu/ui/ayu_lottie.h
Normal file
14
Telegram/SourceFiles/ayu/ui/ayu_lottie.h
Normal 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
|
Loading…
Add table
Reference in a new issue