1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:47:35 +00:00

Applications: Use native style sheet for WebViews where appropriate

This commit is contained in:
Sam Atkins 2023-08-24 11:07:14 +01:00 committed by Sam Atkins
parent 7436f4fec2
commit aae7905369
4 changed files with 4 additions and 0 deletions

View file

@ -82,6 +82,7 @@ HelpWindow::HelpWindow(GUI::Window* parent)
m_listview->set_model(HelpListModel::create());
m_webview = splitter.add<WebView::OutOfProcessWebView>();
m_webview->use_native_user_style_sheet();
m_webview->on_link_click = [this](auto& url, auto&, auto&&) {
VERIFY(url.scheme() == "spreadsheet");
if (url.host().template has<String>() && url.host().template get<String>() == "example"sv) {