summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-12 15:26:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-14 00:10:10 +0200
commit2ea790200f5d915f88c6f78014d978ce8d91e33f (patch)
tree78727ec9794f6a0d97c04ffb101517ac2cf2fc70 /cui
parent974c9825d339576c9438e7fc1309a059020ab50f (diff)
tdf#142631 use document background color in the spelling widget
Change-Id: Ie33a0e305192697c18e20c3b6c1a554ccddf4284 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139804 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index a537e4060c99..5fb079395eb9 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -50,6 +50,7 @@
#include <SpellDialog.hxx>
#include <optlingu.hxx>
#include <treeopt.hxx>
+#include <svtools/colorcfg.hxx>
#include <svtools/langtab.hxx>
#include <sal/log.hxx>
#include <i18nlangtag/languagetag.hxx>
@@ -1128,6 +1129,12 @@ void SentenceEditWindow_Impl::SetDrawingArea(weld::DrawingArea* pDrawingArea)
WeldEditView::SetDrawingArea(pDrawingArea);
// tdf#132288 don't merge equal adjacent attributes
m_xEditEngine->DisableAttributeExpanding();
+
+ // tdf#142631 use document background color in this widget
+ Color aBgColor = svtools::ColorConfig().GetColorValue(svtools::DOCCOLOR).nColor;
+ OutputDevice& rDevice = pDrawingArea->get_ref_device();
+ rDevice.SetBackground(aBgColor);
+ m_xEditView->SetBackgroundColor(aBgColor);
}
SentenceEditWindow_Impl::~SentenceEditWindow_Impl()