summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-04 12:05:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-04 17:17:59 +0200
commit84b4bca314ded015911ab986e8f999518616b248 (patch)
treef3ce6bcd7aee443615b69d34bb16bf16cef57693
parentc43398c2a455d32660650bbf876099d0b8554b68 (diff)
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@redhat.com>
-rw-r--r--sfx2/source/dialog/backingwindow.cxx8
1 files changed, 7 insertions, 1 deletions
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();