diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index 22ad80238..0ccad2cad 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -114,8 +114,6 @@ PRIVATE ayu/utils/telegram_helpers.h ayu/utils/windows_utils.cpp ayu/utils/windows_utils.h - ayu/ui/ayu_lottie.cpp - ayu/ui/ayu_lottie.h ayu/ui/ayu_assets.cpp ayu/ui/ayu_assets.h ayu/ui/utils/ayu_profile_values.cpp diff --git a/Telegram/SourceFiles/ayu/ayu_infra.cpp b/Telegram/SourceFiles/ayu/ayu_infra.cpp index 9ba93dbc6..ba26ac54e 100644 --- a/Telegram/SourceFiles/ayu/ayu_infra.cpp +++ b/Telegram/SourceFiles/ayu/ayu_infra.cpp @@ -7,8 +7,6 @@ #include "ayu_infra.h" #include "ayu_lang.h" -#include "ayu/ayu_lottie.h" -#include "ayu/ui/ayu_lottie.h" #include "ayu/database/ayu_database.h" #include "lang/lang_instance.h" #include "ayu/ayu_settings.h" @@ -28,11 +26,6 @@ void initLang() CustomLangPack::currentInstance()->fetchCustomLangPack(langPackId, langPackBaseId); } -void initLottie() -{ - AyuUi::setLottieImpl(std::make_shared()); -} - void initDatabase() { AyuDatabase::initialize(); @@ -49,7 +42,6 @@ void initFonts() void init() { initLang(); - initLottie(); initFonts(); initDatabase(); } diff --git a/Telegram/SourceFiles/ayu/ui/ayu_lottie.cpp b/Telegram/SourceFiles/ayu/ui/ayu_lottie.cpp deleted file mode 100644 index e1f192b2c..000000000 --- a/Telegram/SourceFiles/ayu/ui/ayu_lottie.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// 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 AyuLottieImpl::getLottie(const QString &text) -{ - // todo: some kind of mapping - // Lottie::MakeIcon({.json = QString(), .sizeOverride = {24, 24}}); - return nullptr; -} - -} diff --git a/Telegram/SourceFiles/ayu/ui/ayu_lottie.h b/Telegram/SourceFiles/ayu/ui/ayu_lottie.h deleted file mode 100644 index a8159a7ff..000000000 --- a/Telegram/SourceFiles/ayu/ui/ayu_lottie.h +++ /dev/null @@ -1,20 +0,0 @@ -// 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" -#include "ayu/ayu_lottie.h" - -namespace AyuUi -{ - -class AyuLottieImpl : public AyuLottie -{ - std::unique_ptr getLottie(const QString &text) override; -}; - -} diff --git a/Telegram/lib_ui b/Telegram/lib_ui index d0b0f2aee..a7dfd3834 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit d0b0f2aee9dac4cd13cf8a13bf4614dcd13bdd5b +Subproject commit a7dfd383490e9e3a3a83b2b920d34f6409d37eee