mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibGUI: Set a tooltip on the emojis' buttons to their code point names
This commit is contained in:
committed by
Linus Groh
parent
eeb7b153a2
commit
21a89b65fc
Notes:
sideshowbarker
2024-07-17 07:22:26 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/21a89b65fc Pull-request: https://github.com/SerenityOS/serenity/pull/15094 Reviewed-by: https://github.com/linusg ✅
@@ -90,6 +90,9 @@ auto EmojiInputDialog::supported_emoji() -> Vector<Emoji>
|
||||
done(ExecResult::OK);
|
||||
};
|
||||
|
||||
if (name.has_value())
|
||||
button->set_tooltip(name->to_titlecase());
|
||||
|
||||
code_points.empend(code_point, move(name), move(button));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user