1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

LibGUI: Add a search box to filter EmojiInputDialog by code point names

This commit is contained in:
Timothy Flynn 2022-09-06 10:59:44 -04:00 committed by Linus Groh
parent a885406511
commit eeb7b153a2
4 changed files with 33 additions and 6 deletions

View file

@ -15,6 +15,7 @@ class EmojiInputDialog final : public Dialog {
struct Emoji {
u32 code_point { 0 };
Optional<String> name;
RefPtr<Button> button;
};
@ -28,6 +29,7 @@ private:
Vector<Emoji> supported_emoji();
void update_displayed_emoji();
RefPtr<TextBox> m_search_box;
RefPtr<Widget> m_emojis_widget;
Vector<Emoji> m_emojis;
String m_selected_emoji_text;