Files
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

43 lines
1.1 KiB
C++

#ifndef SolidLayerModel_hpp
#define SolidLayerModel_hpp
#include "Lottie/Private/Model/Layers/LayerModel.hpp"
#include "Lottie/Private/Parsing/JsonParsing.hpp"
namespace lottie {
/// A layer that holds a solid color.
class SolidLayerModel: public LayerModel {
public:
explicit SolidLayerModel(lottiejson11::Json::object const &json) noexcept(false) :
LayerModel(json) {
colorHex = getString(json, "sc");
width = (float)getDouble(json, "sw");
height = (float)getDouble(json, "sh");
}
virtual ~SolidLayerModel() = default;
virtual void toJson(lottiejson11::Json::object &json) const override {
LayerModel::toJson(json);
json.insert(std::make_pair("sc", colorHex));
json.insert(std::make_pair("sw", width));
json.insert(std::make_pair("sh", height));
}
public:
/// The color of the solid in Hex // Change to value provider.
std::string colorHex;
/// The Width of the color layer
float width;
/// The height of the color layer
float height;
};
}
#endif /* SolidLayerModel_hpp */