sfx2/source/dialog/backingwindow.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 84b4bca314ded015911ab986e8f999518616b248 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue May 4 12:05:28 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue May 4 17:17:59 2021 +0200 Resolves: tdf#141857 update background to current theme Change-Id: I1004bd9944f382ca66e48575b81170cf3314845f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115092 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 630e96051150..df7f52253a6d 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -100,7 +100,13 @@ public: virtual void StyleUpdated() override { - const bool bIsDark = Application::GetSettings().GetStyleSettings().GetDialogColor().IsDark(); + const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); + + // tdf#141857 update background to current theme + OutputDevice& rDevice = GetDrawingArea()->get_ref_device(); + rDevice.SetBackground(Wallpaper(rStyleSettings.GetWindowColor())); + + const bool bIsDark = rStyleSettings.GetDialogColor().IsDark(); if (bIsDark != mbIsDark) LoadImageForWidth(GetOutputSizePixel().Width()); weld::CustomWidgetController::StyleUpdated(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits