1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:08:10 +00:00

Ladybird: Install the native style sheet into the JS console web view

Without this, we are unable to render the web view in dark mode.
This commit is contained in:
Timothy Flynn 2023-08-26 13:37:51 -04:00 committed by Tim Flynn
parent 3f122b7335
commit 0f9c088302

View file

@ -29,6 +29,7 @@ ConsoleWidget::ConsoleWidget()
setLayout(new QVBoxLayout);
m_output_view = new WebContentView({}, WebView::EnableCallgrindProfiling::No, UseLagomNetworking::No);
m_output_view->use_native_user_style_sheet();
if (is_using_dark_system_theme(*this))
m_output_view->update_palette(WebContentView::PaletteMode::Dark);