Removed emoji sets from lib_ui.
This commit is contained in:
parent
44c4633684
commit
be5ed0053a
2 changed files with 0 additions and 20 deletions
|
|
@ -37,13 +37,6 @@ constexpr auto kMaxId = uint32(1 << 8);
|
||||||
|
|
||||||
constexpr auto kScaleForTouchBar = 150;
|
constexpr auto kScaleForTouchBar = 150;
|
||||||
|
|
||||||
const auto kSets = {
|
|
||||||
Set{ 0, 0, 0, "Mac", ":/gui/emoji/set0_preview.webp" },
|
|
||||||
Set{ 1, 246, 7'336'383, "Android", ":/gui/emoji/set1_preview.webp" },
|
|
||||||
Set{ 2, 206, 5'038'738, "Twemoji", ":/gui/emoji/set2_preview.webp" },
|
|
||||||
Set{ 3, 238, 6'992'260, "JoyPixels", ":/gui/emoji/set3_preview.webp" },
|
|
||||||
};
|
|
||||||
|
|
||||||
// Right now we can't allow users of Ui::Emoji to create custom sizes.
|
// Right now we can't allow users of Ui::Emoji to create custom sizes.
|
||||||
// Any Instance::Instance() can invalidate Universal.id() and sprites.
|
// Any Instance::Instance() can invalidate Universal.id() and sprites.
|
||||||
// So all Instance::Instance() should happen before async generations.
|
// So all Instance::Instance() should happen before async generations.
|
||||||
|
|
@ -527,10 +520,6 @@ void ClearIrrelevantCache() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<Set> Sets() {
|
|
||||||
return kSets | ranges::to_vector;
|
|
||||||
}
|
|
||||||
|
|
||||||
int CurrentSetId() {
|
int CurrentSetId() {
|
||||||
Expects(Universal != nullptr);
|
Expects(Universal != nullptr);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,18 +29,9 @@ void Clear();
|
||||||
|
|
||||||
void ClearIrrelevantCache();
|
void ClearIrrelevantCache();
|
||||||
|
|
||||||
struct Set {
|
|
||||||
int id = 0;
|
|
||||||
int postId = 0;
|
|
||||||
int size = 0;
|
|
||||||
QString name;
|
|
||||||
QString previewPath;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Thread safe, callback is called on main thread.
|
// Thread safe, callback is called on main thread.
|
||||||
void SwitchToSet(int id, Fn<void(bool)> callback);
|
void SwitchToSet(int id, Fn<void(bool)> callback);
|
||||||
|
|
||||||
std::vector<Set> Sets();
|
|
||||||
int CurrentSetId();
|
int CurrentSetId();
|
||||||
bool SetIsReady(int id);
|
bool SetIsReady(int id);
|
||||||
rpl::producer<> Updated();
|
rpl::producer<> Updated();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue