diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-30 09:17:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-30 12:24:35 +0200 |
commit | a091ae213eb8d64c21361969775b76e7911cc1af (patch) | |
tree | a1b178a8cd37b544236ac46491ddc2895cd2cff0 /sfx2 | |
parent | 9ec9ace3f010dc654ac831cf66d9589a16b07931 (diff) |
tdf#143673 set an explicit drawing area bg
noticed in gtk darkmode on switching from initial application
to start center
Change-Id: I1cffab97ecd69ca6043531a6b2b5fc34b1ca84f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140789
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index a21300947a20..e34e02ec2d40 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -74,6 +74,11 @@ public: virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override { weld::CustomWidgetController::SetDrawingArea(pDrawingArea); + + const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); + OutputDevice& rDevice = pDrawingArea->get_ref_device(); + rDevice.SetBackground(Wallpaper(rStyleSettings.GetWindowColor())); + SetPointer(PointerStyle::RefHand); } |