4 Commits
Author SHA1 Message Date
Andrew Kaster f4773b0c36 Userland: Convert bitmap resource loads to load from resource URIs
Any bitmap load of the style load_from_file("/res/foo") has been
converted to the new pattern load_from_uri("resource://foo").

This will allow for porting more apps to non-serenity targets, as well
as add some flexibility if we want to experiment with other resource
storage formats in the future.
2026-07-12 14:42:21 -04:00
Fırat Kızılboğa be9c927f6c Browser: Focus search textbox when showing the find-in-page widget
The changes move the focus from the widget itself to its searchbox
2026-02-05 14:09:11 -05:00
Fırat Kızılboğa 67a0d6eae6 Browser: Share Find in Page search term across tabs
This adds a global search term stored in BrowserWindow that is shared
across all tabs. When opening Find in Page (Ctrl+F), the widget now
uses the following priority logic:

1. If there's text selected on the page, use that
2. If the search box is empty, use the global search term
3. Otherwise, keep the existing text

To imitatates Chromium's logic, the global search term is updated
whenever the user types, navigates matches, or when a selection
populates the search box.
2026-01-21 22:38:20 -05:00
Fırat Kızılboğa a2d32d03c1 Browser: Add find-in-page widget
This adds a FindInPageWidget to the Browser application, allowing users
to search for text within the current tab.

Features:
- Search textbox with real-time search as you type
- Previous/Next buttons with up/down arrow icons
- Match Case checkbox to toggle case sensitivity
- Result label showing "X of Y matches" or "Phrase not found"
- Close button to hide the widget

Keyboard shortcuts:
- Ctrl+F: Open find-in-page widget
- Enter: Jump to next match
- Shift+Enter: Jump to previous match
- Escape: Close the widget

The widget integrates with LibWebView's existing find_in_page,
find_in_page_next_match, and find_in_page_previous_match APIs.
2026-01-21 22:38:20 -05:00