include/LibreOfficeKit/LibreOfficeKitEnums.h | 3 +-- sw/source/uibase/app/apphdl.cxx | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-)
New commits: commit 367e9205e10d10cb564bb462dea821ce554b99da Author: Paris Oplopoios <paris.oplopo...@collabora.com> AuthorDate: Wed Jun 28 16:23:16 2023 +0300 Commit: Paris Oplopoios <parisop...@gmail.com> CommitDate: Wed Jun 28 17:14:40 2023 +0200 Send writer document background color on theme change Send the doc background color to the kit on theme change Change-Id: Ic025e542417da004c1c4a2bfd58a858deb4caa58 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153715 Tested-by: Jenkins Reviewed-by: Paris Oplopoios <parisop...@gmail.com> diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index 0325e62399a5..b7a43acf7d27 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -774,8 +774,7 @@ typedef enum LOK_CALLBACK_VALIDITY_INPUT_HELP = 51, /** - * This is currently Calc only. Indicates the document background - * color in the payload as a RGB hex string (RRGGBB). + * Indicates the document background color in the payload as a RGB hex string (RRGGBB). */ LOK_CALLBACK_DOCUMENT_BACKGROUND_COLOR = 52, diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx index d7ab78d6e392..26a08b03c00b 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -996,6 +996,8 @@ void SwModule::ConfigurationChanged( utl::ConfigurationBroadcaster* pBrdCst, Con { pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR, aViewColors.m_aAppBackgroundColor.AsRGBHexString().toUtf8()); + pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_DOCUMENT_BACKGROUND_COLOR, + aViewColors.m_aAppBackgroundColor.AsRGBHexString().toUtf8()); } } if(pSwView != nullptr ||