2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Moved emoji sets from lib_ui. Added parent struct to storage_cloud_blob.

This commit is contained in:
23rd
2020-02-05 13:59:07 +03:00
parent 08cd7450ff
commit 9f4d05b04c
5 changed files with 71 additions and 49 deletions

View File

@@ -31,6 +31,25 @@ namespace Ui {
namespace Emoji {
namespace {
struct Set : public Storage::Blob {
QString previewPath;
};
inline auto PreviewPath(int i) {
return qsl(":/gui/emoji/set%1_preview.webp").arg(i);
}
const auto kSets = {
Set{ {0, 0, 0, "Mac"}, PreviewPath(0) },
Set{ {1, 246, 7'336'383, "Android"}, PreviewPath(1) },
Set{ {2, 206, 5'038'738, "Twemoji"}, PreviewPath(2) },
Set{ {3, 238, 6'992'260, "JoyPixels"}, PreviewPath(3) },
};
auto Sets() {
return kSets;
}
struct Available {
int size = 0;