From 84b4bca314ded015911ab986e8f999518616b248 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 4 May 2021 12:05:28 +0100 Subject: Resolves: tdf#141857 update background to current theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1004bd9944f382ca66e48575b81170cf3314845f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115092 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sfx2/source/dialog/backingwindow.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sfx2/source/dialog/backingwindow.cxx') 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(); -- cgit