cui/source/options/appearance.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit e4045146603e3bb64373b60c2675276502cb4f2e Author: Sahil Gautam <sahil.gautam.ext...@allotropia.de> AuthorDate: Thu Feb 27 05:37:03 2025 +0530 Commit: Patrick Luby <guibomac...@gmail.com> CommitDate: Thu Feb 27 13:41:26 2025 +0100 tdf#165438 for user created (raw) themes, use default document colors Change-Id: I7d35617ac4a22e6d41cdad2fb6991ae9901284e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182263 Reviewed-by: Sahil Gautam <sahil.gautam.ext...@allotropia.de> Tested-by: Jenkins Reviewed-by: Patrick Luby <guibomac...@gmail.com> diff --git a/cui/source/options/appearance.cxx b/cui/source/options/appearance.cxx index 1fb60a467e4b..098874c205db 100644 --- a/cui/source/options/appearance.cxx +++ b/cui/source/options/appearance.cxx @@ -376,6 +376,13 @@ IMPL_LINK(SvxAppearanceTabPage, AddRemoveSchemeHdl, weld::Button&, rButton, void m_xSchemeList->append_text(sName); m_xSchemeList->set_active_text(sName); SchemeChangeHdl(*m_xSchemeList); + + ColorConfigValue aValue; + aValue.nDarkColor = COL_AUTO; + aValue.nLightColor = COL_AUTO; + + for (size_t i = 0; i < WINDOWCOLOR; ++i) + pColorConfig->SetColorValue(static_cast<ColorConfigEntry>(i), aValue); } } else