From 1f2a07e06b440ff1b15d66c2a2e72338301cdf0a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 21 Apr 2022 20:08:06 +0200 Subject: sd theme: add rendering for shape fill color effects Only the no-effects variant was working previously. Change-Id: I50811a4c49d19dc801f0d1c841cbbdb2fae1ad60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133297 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- svx/source/styles/ColorSets.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'svx/source/styles') diff --git a/svx/source/styles/ColorSets.cxx b/svx/source/styles/ColorSets.cxx index b1cb6fb34ca7..9edfdc2f3d2a 100644 --- a/svx/source/styles/ColorSets.cxx +++ b/svx/source/styles/ColorSets.cxx @@ -78,6 +78,15 @@ void UpdateFillColorSet(const uno::Reference& xShape, const } Color aColor = rColorSet.getColor(nFillColorTheme); + sal_Int32 nFillColorLumMod{}; + xShape->getPropertyValue(UNO_NAME_FILLCOLOR_LUM_MOD) >>= nFillColorLumMod; + sal_Int32 nFillColorLumOff{}; + xShape->getPropertyValue(UNO_NAME_FILLCOLOR_LUM_OFF) >>= nFillColorLumOff; + if (nFillColorLumMod != 10000 || nFillColorLumOff != 0) + { + aColor.ApplyLumModOff(nFillColorLumMod, nFillColorLumOff); + } + xShape->setPropertyValue(UNO_NAME_FILLCOLOR, uno::makeAny(static_cast(aColor))); } -- cgit