summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2017-11-10 17:57:19 +0000
committerMichael Meeks <michael.meeks@collabora.com>2017-11-11 16:56:33 +0100
commitb77af2396adbab0ec4fea4160e0c711b080fff67 (patch)
tree92278cb7d916dce44b658888be7f43a8b0c33658 /vcl/source
parent5bd7cc788d0b0f4a2595f32f4897abe6e39ce6c8 (diff)
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 <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/settings.cxx13
1 files changed, 13 insertions, 0 deletions
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: */