sw/source/uibase/app/apphdl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5292d8d52c2fd1f2556d0691738961f2e3ddda46 Author: Skyler Grey <skyler.g...@collabora.com> AuthorDate: Wed Jun 26 08:53:46 2024 +0000 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Aug 1 16:19:43 2024 +0200 fix(writer): send document bg color on new theme In Ic025e542417da004c1c4a2bfd58a858deb4caa58, we intended to start sending the document background color to kit after a configuration change, which is useful when we change the document theme. Unfortunately, we mistakenly sent the *application* background color instead, which is normally darker/lighter than the document background color, causing color flashes if you tried to use the document color as a background before tiles were sent Change-Id: I27c8409a6fcb771d741b07d77c5598c87e178f3b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171373 Tested-by: Jenkins Reviewed-by: Skyler Grey <skyler.g...@collabora.com> diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx index 9e5ada1b0101..35504f1c8f33 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -995,7 +995,7 @@ void SwModule::ConfigurationChanged(utl::ConfigurationBroadcaster* pBrdCst, Conf pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR, aViewColors.m_aAppBackgroundColor.AsRGBHexString().toUtf8()); pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_DOCUMENT_BACKGROUND_COLOR, - aViewColors.m_aAppBackgroundColor.AsRGBHexString().toUtf8()); + aViewColors.m_aDocColor.AsRGBHexString().toUtf8()); } // if nothing changed, and the hint was OnlyCurrentDocumentColorScheme we can skip invalidate