include/LibreOfficeKit/LibreOfficeKitEnums.h | 3 +-- sw/source/uibase/app/apphdl.cxx | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-)
New commits: commit f8e75b5c4511bc7633a646abace0e57ae0121242 Author: Paris Oplopoios <paris.oplopo...@collabora.com> AuthorDate: Wed Jun 28 15:50:06 2023 +0300 Commit: Paris Oplopoios <parisop...@gmail.com> CommitDate: Thu Jun 29 13:01:03 2023 +0200 Send writer document background color on theme change Send the doc background color to the kit on theme change Change-Id: Ibbcd8d20c8cfce4918544716ffbdf374a1f06e5d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153712 Tested-by: Paris Oplopoios <parisop...@gmail.com> Reviewed-by: Paris Oplopoios <parisop...@gmail.com> diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index d2a03c8ce9b6..c7e65a63c796 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 7e9b6e650b32..d7a452f5cc50 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -998,6 +998,8 @@ void SwModule::ConfigurationChanged( utl::ConfigurationBroadcaster* pBrdCst, Con { pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR, aViewColors.m_aAppBackgroundColor.AsRGBHexString().toUtf8().getStr()); + pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_DOCUMENT_BACKGROUND_COLOR, + aViewColors.m_aDocColor.AsRGBHexString().toUtf8().getStr()); } } }