summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-03-14 16:51:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-03-15 10:13:03 +0000
commitac442dc11247a9f794056cfb7d6cff5cd8400717 (patch)
tree0454097af26bf83094fdb116803bf836f85f8876
parent2d331e6bfe8c9ca31f1a4e092dbcffb8919b8655 (diff)
set the background color of the valueset during format
so that it will change when the theme changes Change-Id: I20cc8434a75a1cfebef274d27a86cacc91b1e7d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148894 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--svtools/source/control/valueset.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 0da10bfda9e2..84bb1248e6e5 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -80,8 +80,6 @@ ValueSet::ValueSet(std::unique_ptr<weld::ScrolledWindow> pScrolledWindow)
, mbFormat(true)
, mbHighlight(false)
{
- maVirDev->SetBackground(Application::GetSettings().GetStyleSettings().GetFaceColor());
-
mnItemWidth = 0;
mnItemHeight = 0;
mnTextOffset = 0;
@@ -998,6 +996,7 @@ void ValueSet::Format(vcl::RenderContext const & rRenderContext)
// Init VirDev
maVirDev->SetSettings(rRenderContext.GetSettings());
+ maVirDev->SetBackground(Application::GetSettings().GetStyleSettings().GetFaceColor());
maVirDev->SetOutputSizePixel(aWinSize);
// nothing is changed in case of too small items