svtools/source/control/valueset.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit ac442dc11247a9f794056cfb7d6cff5cd8400717 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Mar 14 16:51:24 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Mar 15 10:13:03 2023 +0000 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 <caol...@redhat.com> 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