mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
LibWeb+LibWebView+WebContent: Introduce a basic about:settings page
This adds a basic settings page to manage persistent Ladybird settings. As a first pass, this exposes settings for the new tab page URL and the default search engine. The way the search engine option works is that once search is enabled, the user must choose their default search engine; we do not apply any default automatically. Search remains disabled until this is done. There are a couple of improvements that we should make here: * Settings changes are not broadcasted to all open about:settings pages. So if two instances are open, and the user changes the search engine in one instance, the other instance will have a stale UI. * Adding an IPC per setting is going to get annoying. It would be nice if we can come up with a smaller set of IPCs to send only the relevant changed settings.
This commit is contained in:
parent
e084a86861
commit
b169a98495
Notes:
github-actions[bot]
2025-03-22 16:28:49 +00:00
Author: https://github.com/trflynn89
Commit: b169a98495
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4036
16 changed files with 475 additions and 2 deletions
|
@ -175,6 +175,11 @@ private:
|
|||
virtual IPC::File request_worker_agent() override;
|
||||
virtual void page_did_mutate_dom(FlyString const& type, Web::DOM::Node const& target, Web::DOM::NodeList& added_nodes, Web::DOM::NodeList& removed_nodes, GC::Ptr<Web::DOM::Node> previous_sibling, GC::Ptr<Web::DOM::Node> next_sibling, Optional<String> const& attribute_name) override;
|
||||
virtual void update_process_statistics() override;
|
||||
virtual void request_current_settings() override;
|
||||
virtual void restore_default_settings() override;
|
||||
virtual void set_new_tab_page_url(URL::URL const&) override;
|
||||
virtual void request_available_search_engines() override;
|
||||
virtual void set_search_engine(Optional<String> const&) override;
|
||||
|
||||
Web::Layout::Viewport* layout_root();
|
||||
void setup_palette();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue