summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-05-18 20:46:06 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-07-01 15:17:46 +0200
commit1ad7bdafc982a9854e99b5cbec1b44ed96cbe92c (patch)
tree6fffeee7c0292d3f37d10f7a6003a981fba7e1a7
parent67f12a2b49179f1f4e655d80942e4aef22e1f37c (diff)
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(). (cherry picked from commit 2589f8a155d00b22078607ddd0229d155a394f3a) Change-Id: Ie3f6c1916d2cfa3f26732e105b9bae101d70fc12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136733 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--cui/source/tabpages/tpcolor.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index a6f3813f6e48..67e24c371c68 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -244,6 +244,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;