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:
parent
3f122b7335
commit
0f9c088302
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue