summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-11-27 10:34:56 +0000
committerMiklos Vajna <vmiklos@collabora.com>2023-11-28 11:06:45 +0100
commita80b063ca9b9a1ae9c288ce1725d783953131559 (patch)
treecc134a1fdd99dd8b64b7aa609aa88857cac6cc55 /svx
parentc7a378f88d3cd2c88f32390b16d2629d0e1727da (diff)
Always send theme-change in kit-mode even if the global theme is the same
Kit explicitly ignores changes to the global color scheme, except for the current ViewShell, so an attempted change to the same global color scheme when the now current ViewShell ignored the last change requires re-sending the change. In which case individual shells will have to decide if this color-scheme change is a change from their perspective to avoid unnecessary invalidations. Add ConfigurationHints::OnlyCurrentDocumentColorScheme as the hint that only the document color scheme has changed, so individual shells can see if their document color scheme is different to this new color scheme and not invalidate if unnecessary. So dark/light mode changes work properly without reintroducing unwanted invalidations. Change-Id: I5ebb4878694ceb6b9afe26286a30da06ea6ff3ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159992 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdpntv.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 580c6d484709..566e07b2d853 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -231,8 +231,10 @@ void SdrPaintView::Notify(SfxBroadcaster& rBC, const SfxHint& rHint)
}
}
-void SdrPaintView::ConfigurationChanged( ::utl::ConfigurationBroadcaster* , ConfigurationHints )
+void SdrPaintView::ConfigurationChanged( ::utl::ConfigurationBroadcaster* , ConfigurationHints eHint)
{
+ if (eHint == ConfigurationHints::OnlyCurrentDocumentColorScheme)
+ return;
onChangeColorConfig();
InvalidateAllWin();
}