1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:37: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

@ -35,6 +35,7 @@ ErrorOr<void> WelcomeWidget::create_widgets()
m_banner_font = TRY(Gfx::BitmapFont::try_load_from_file("/res/fonts/MarietaRegular24.font"sv));
m_web_view = find_descendant_of_type_named<WebView::OutOfProcessWebView>("web_view");
m_web_view->use_native_user_style_sheet();
auto path = TRY(String::formatted("{}/README.md", Core::StandardPaths::home_directory()));
m_web_view->load(URL::create_with_file_scheme(path.to_deprecated_string()));