From 2589f8a155d00b22078607ddd0229d155a394f3a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 18 May 2022 20:46:06 +0200 Subject: sd theme: add UI (area dialog) for shape fill color effects SvxColorTabPage::aCurrentColor already had these effects and XFillColorItem already had a way to store the effects, just connect them in SvxColorTabPage::FillItemSet(). Change-Id: Ie3f6c1916d2cfa3f26732e105b9bae101d70fc12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134552 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- cui/source/tabpages/tpcolor.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cui/source') diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index 507f93f58ef6..e65c49617701 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -242,6 +242,14 @@ bool SvxColorTabPage::FillItemSet( SfxItemSet* rSet ) { aColorItem.GetThemeColor().SetThemeIndex(aCurrentColor.m_nThemeIndex); } + if (aCurrentColor.m_nLumMod != 10000) + { + aColorItem.GetThemeColor().SetLumMod(aCurrentColor.m_nLumMod); + } + if (aCurrentColor.m_nLumOff != 0) + { + aColorItem.GetThemeColor().SetLumOff(aCurrentColor.m_nLumOff); + } rSet->Put( aColorItem ); rSet->Put( XFillStyleItem( drawing::FillStyle_SOLID ) ); return true; -- cgit