From 0f9c088302fa1b6d5aafa4b21f952cdcad4dc737 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 26 Aug 2023 13:37:51 -0400 Subject: [PATCH] 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. --- Ladybird/Qt/ConsoleWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Ladybird/Qt/ConsoleWidget.cpp b/Ladybird/Qt/ConsoleWidget.cpp index 2e53264ed5..7972b69b9b 100644 --- a/Ladybird/Qt/ConsoleWidget.cpp +++ b/Ladybird/Qt/ConsoleWidget.cpp @@ -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);