mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
CharacterMap: Override statusbar text on action hover
We have quite a lot of nicely described action status tips here that we have never shown. Let's change that!
This commit is contained in:
parent
92ff12a0d0
commit
bd8e16b704
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/krkk
Commit: bd8e16b704
Pull-request: https://github.com/SerenityOS/serenity/pull/19257
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 8 additions and 0 deletions
|
@ -145,6 +145,14 @@ CharacterMapWidget::CharacterMapWidget()
|
|||
m_unicode_block_listview->horizontal_scrollbar().set_visible(false);
|
||||
m_unicode_block_listview->set_cursor(m_unicode_block_model->index(0, 0), GUI::AbstractView::SelectionUpdate::Set);
|
||||
|
||||
GUI::Application::the()->on_action_enter = [this](GUI::Action& action) {
|
||||
m_statusbar->set_override_text(action.status_tip());
|
||||
};
|
||||
|
||||
GUI::Application::the()->on_action_leave = [this](GUI::Action&) {
|
||||
m_statusbar->set_override_text({});
|
||||
};
|
||||
|
||||
did_change_font();
|
||||
update_statusbar();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue