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
Notes: sideshowbarker 2024-07-17 08:43:11 +09:00

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);