From b77af2396adbab0ec4fea4160e0c711b080fff67 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 10 Nov 2017 17:57:19 +0000 Subject: vcl: StyleSettings - start to unwind code duplication. This should be a pure re-factor, plus headless tweak. Change-Id: Iad7f524ea76625601b3f85cc13a50311ed1de171 Reviewed-on: https://gerrit.libreoffice.org/44624 Tested-by: Jenkins Reviewed-by: Michael Meeks --- vcl/source/app/settings.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'vcl/source') diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 215d8eaca122..9d739341176f 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -3117,4 +3117,17 @@ AllSettings::GetSysLocale() return mxData->maSysLocale; } + +void StyleSettings::BatchSetBackgrounds( const Color &aBackColor, + bool bCheckedColorSpecialCase ) +{ + Set3DColors( aBackColor ); + SetFaceColor( aBackColor ); + SetDialogColor( aBackColor ); + SetWorkspaceColor( aBackColor ); + + if (bCheckedColorSpecialCase) + SetCheckedColorSpecialCase(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3