mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03: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: https://github.com/SerenityOS/serenity/commit/0f9c088302 Pull-request: https://github.com/SerenityOS/serenity/pull/20792 Reviewed-by: https://github.com/AtkinsSJ ✅
@ -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…
Reference in New Issue
Block a user