cui/source/tabpages/tpcolor.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 1ad7bdafc982a9854e99b5cbec1b44ed96cbe92c
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Wed May 18 20:46:06 2022 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Fri Jul 1 15:17:46 2022 +0200

    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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

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;

Reply via email to