mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
Applications: Use native style sheet for WebViews where appropriate
This commit is contained in:
parent
7436f4fec2
commit
aae7905369
4 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,7 @@ ErrorOr<void> MainWidget::initialize_fallibles(GUI::Window& window)
|
|||
};
|
||||
|
||||
m_web_view = find_descendant_of_type_named<WebView::OutOfProcessWebView>("web_view");
|
||||
m_web_view->use_native_user_style_sheet();
|
||||
m_web_view->on_link_click = [this](auto& url, auto&, unsigned) {
|
||||
if (url.scheme() == "file") {
|
||||
auto path = LexicalPath { url.serialize_path() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue