mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibGUI: Add IncrementalSearchBanner
Compared to traditional modal search, incremental search begins matching as soon as the user starts typing, highlighting results immediately. This refactors Itamar's work for HackStudio into a common LibGUI widget to be used in all multi-line TextEditors.
This commit is contained in:
parent
3c4a563415
commit
8231bd9bc3
Notes:
sideshowbarker
2024-07-17 03:57:36 +09:00
Author: https://github.com/thankyouverycool
Commit: 8231bd9bc3
Pull-request: https://github.com/SerenityOS/serenity/pull/16246
Reviewed-by: https://github.com/AtkinsSJ ✅
6 changed files with 267 additions and 1 deletions
|
@ -56,6 +56,7 @@ public:
|
|||
|
||||
void scroll_to_top();
|
||||
void scroll_to_bottom();
|
||||
void update_scrollbar_ranges();
|
||||
|
||||
void set_automatic_scrolling_timer(bool active);
|
||||
virtual Gfx::IntPoint automatic_scroll_delta_from_position(Gfx::IntPoint const&) const;
|
||||
|
@ -89,7 +90,6 @@ protected:
|
|||
virtual void on_automatic_scrolling_timer_fired() {};
|
||||
int autoscroll_threshold() const { return m_autoscroll_threshold; }
|
||||
void update_scrollbar_visibility();
|
||||
void update_scrollbar_ranges();
|
||||
|
||||
private:
|
||||
class AbstractScrollableWidgetScrollbar final : public Scrollbar {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue