sw/source/uibase/app/apphdl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 174dd0d8565b2e8e26bc1ea4ddfba4c4e343c0aa
Author:     Skyler Grey <[email protected]>
AuthorDate: Wed Jun 26 08:53:46 2024 +0000
Commit:     Szymon Kłos <[email protected]>
CommitDate: Wed Jun 26 19:02:53 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/+/169540
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Szymon Kłos <[email protected]>

diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index bca9d20dbd59..253117c5bf9b 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -1000,7 +1000,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

Reply via email to