sfx2/source/dialog/backingwindow.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 18630ff2f994629d1e409b34e8486f2b59a4f109 Author: Caolán McNamara <[email protected]> AuthorDate: Fri Sep 30 09:17:01 2022 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Mon Oct 3 12:28:39 2022 +0200 tdf#143673 set an explicit drawing area bg noticed in gtk darkmode on switching from initial application to start center Change-Id: I1cffab97ecd69ca6043531a6b2b5fc34b1ca84f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140789 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> (cherry picked from commit a091ae213eb8d64c21361969775b76e7911cc1af) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140755 Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index cde9a7532d9f..6d8c2bbbc046 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -73,6 +73,11 @@ public: virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override { weld::CustomWidgetController::SetDrawingArea(pDrawingArea); + + const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); + OutputDevice& rDevice = pDrawingArea->get_ref_device(); + rDevice.SetBackground(Wallpaper(rStyleSettings.GetWindowColor())); + SetPointer(PointerStyle::RefHand); }
