[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue May 4 15:18:35 UTC 2021


 sfx2/source/dialog/backingwindow.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 84b4bca314ded015911ab986e8f999518616b248
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue May 4 12:05:28 2021 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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();


More information about the Libreoffice-commits mailing list