summaryrefslogtreecommitdiff
path: root/include/svx/theme
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-06-04 20:57:19 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-06-05 13:06:57 +0200
commite86a0236e69d76769b91f96d71fe852b91c5db6e (patch)
tree88e8ca1a9f89556cdf5004daecaa772e59be3a7f /include/svx/theme
parent6c4c040d2ebc4371a706c762e7e6707875c43535 (diff)
lok: callback to send the updated theme palette when theme changes
The callback sends the updated theme color palette when the theme changes or initially when the view is registered, so the client should always have the up-to-date theme color palette stored, so it can just show the color picker with the theme at any time without the need to call the server. Change-Id: I7cceccc46c2fad23ba89e6d3f3643e37f8dab292 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152589 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/svx/theme')
-rw-r--r--include/svx/theme/ThemeColorPaletteManager.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/svx/theme/ThemeColorPaletteManager.hxx b/include/svx/theme/ThemeColorPaletteManager.hxx
index 14fbda39248b..d575c1038750 100644
--- a/include/svx/theme/ThemeColorPaletteManager.hxx
+++ b/include/svx/theme/ThemeColorPaletteManager.hxx
@@ -60,6 +60,7 @@ class SVXCORE_DLLPUBLIC ThemeColorPaletteManager final
public:
ThemeColorPaletteManager(std::shared_ptr<model::ColorSet> const& pColorSet);
ThemePaletteCollection generate();
+ OString generateJSON();
};
} // end svx namespace