diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-04 12:05:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-04 17:17:59 +0200 |
commit | 84b4bca314ded015911ab986e8f999518616b248 (patch) | |
tree | f3ce6bcd7aee443615b69d34bb16bf16cef57693 /sfx2/source/dialog/backingwindow.cxx | |
parent | c43398c2a455d32660650bbf876099d0b8554b68 (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>
Diffstat (limited to 'sfx2/source/dialog/backingwindow.cxx')
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 8 |
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(); |