MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / FromColorsSlug

Method FromColorsSlug

Telegram/SourceFiles/data/data_wall_paper.cpp:690–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690std::optional<WallPaper> WallPaper::FromColorsSlug(const QString &slug) {
691 auto colors = ColorsFromString(slug);
692 if (colors.empty()) {
693 return std::nullopt;
694 }
695 auto result = CustomWallPaper();
696 result._slug = slug;
697 result._backgroundColors = std::move(colors);
698 return result;
699}
700
701WallPaper WallPaper::FromEmojiId(const QString &emojiId) {
702 auto result = WallPaper(0);

Callers

nothing calls this directly

Calls 3

ColorsFromStringFunction · 0.85
CustomWallPaperFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected