mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +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
Notes:
sideshowbarker
2024-07-17 08:43:11 +09:00
Author: https://github.com/trflynn89
Commit: 0f9c088302
Pull-request: https://github.com/SerenityOS/serenity/pull/20792
Reviewed-by: https://github.com/AtkinsSJ ✅
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