diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-12-21 08:51:56 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-12-21 10:59:36 +0100 |
commit | 4f140ebac1f971d72f5bb59ee23a3fe248c4d16e (patch) | |
tree | 78401e35dc42a0479b99ee6deb4cd392ed987c42 /cui/source/tabpages/chardlg.cxx | |
parent | d6fa091a75eaf665ec734a56ef1e10b72bc603dd (diff) |
sd theme: allow setting color effects in the chardlg
Which means not only the 12 colors from the theme are offered (which
comes from the current master page), but also lighter/darker variants.
And once these are selected, their theme index and luminance modulation
/ offset is also remembered. This means if you pick light blue and later
change accent1 from blue to orange, you get light orange out of the box.
Change-Id: Ia83b8971ad894d02ed4ec5ca914684fc9cf9a677
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127211
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'cui/source/tabpages/chardlg.cxx')
-rw-r--r-- | cui/source/tabpages/chardlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index b9337008d1d9..550213c99eff 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -1601,6 +1601,8 @@ bool SvxCharEffectsPage::FillItemSetColor_Impl( SfxItemSet& rSet ) { // The color was picked from the theme palette, remember its index. aItem.SetThemeIndex(aSelectedColor.m_nThemeIndex); + aItem.SetLumMod(aSelectedColor.m_nLumMod); + aItem.SetLumOff(aSelectedColor.m_nLumOff); } rSet.Put(aItem); |