diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-30 10:45:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-30 12:45:24 +0200 |
commit | 6af64a35270678ce07a9c2e5e3aeaa7507f79710 (patch) | |
tree | f655aa94e8875c6bc6f867cda4ad984674cf461c /sc/source/ui/app/inputwin.cxx | |
parent | d2272426cc79d9aacf4a34c5fd7744b59c29e95b (diff) |
its not ideal to wait until Paint to set the bg color
set it at construction time
Change-Id: I8923ea8f79c4bf18054fc697e2b35caad1b12486
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139024
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/app/inputwin.cxx')
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index c4e517343395..384753ad0745 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1559,6 +1559,10 @@ void ScTextWnd::InitEditEngine() m_xEditView->setEditViewCallbacks(this); m_xEditView->SetInsertMode(bIsInsertMode); + const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); + Color aBgColor = rStyleSettings.GetWindowColor(); + m_xEditView->SetBackgroundColor(aBgColor); + if (pAcc) { pAcc->InitAcc(nullptr, m_xEditView.get(), @@ -2094,6 +2098,10 @@ void ScTextWnd::MakeDialogEditView() m_xEditView = std::make_unique<EditView>(m_xEditEngine.get(), nullptr); m_xEditView->setEditViewCallbacks(this); + const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); + Color aBgColor = rStyleSettings.GetWindowColor(); + m_xEditView->SetBackgroundColor(aBgColor); + if (pAcc) { pAcc->InitAcc(nullptr, m_xEditView.get(), |