diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-05-25 20:06:36 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-05-26 08:16:29 +0200 |
commit | 645413a14a91a72bc06acf0fb4703ff7b9fffec9 (patch) | |
tree | 2f8dfdffb94950b571289732a8df3ae35d1a03ba /sd/source/ui/view/drviews2.cxx | |
parent | 29dcafb5700938502cf62de27265f9d5d3920a8d (diff) |
sd theme: add UI (sidebar) for shape fill color effects
Which was perhaps the last missing piece of the "sd theme: shape fill
color" story.
Change-Id: Ice75d91412aa56afe0c9995086097d491ebf7299
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134952
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd/source/ui/view/drviews2.cxx')
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 591b90afc3f4b..a8906acfc40cb 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -606,6 +606,16 @@ public: auto pIntItem = static_cast<const SfxInt16Item*>(pItem); aColorItem.GetThemeColor().SetThemeIndex(pIntItem->GetValue()); } + if (pArgs->GetItemState(SID_ATTR_COLOR_LUM_MOD, false, &pItem) == SfxItemState::SET) + { + auto pIntItem = static_cast<const SfxInt16Item*>(pItem); + aColorItem.GetThemeColor().SetLumMod(pIntItem->GetValue()); + } + if (pArgs->GetItemState(SID_ATTR_COLOR_LUM_OFF, false, &pItem) == SfxItemState::SET) + { + auto pIntItem = static_cast<const SfxInt16Item*>(pItem); + aColorItem.GetThemeColor().SetLumOff(pIntItem->GetValue()); + } pArgs->Put(aColorItem); } } |