diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2018-03-20 16:40:35 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2018-03-21 17:54:47 +0100 |
commit | fb29b8262488d045a926504725669a362bacb5bb (patch) | |
tree | c8cb6e160267b46742e0051a8eded6206fb5c1f1 /sc/source/ui/view/output.cxx | |
parent | fc3f43b6fe3df5e46ca869d5934d4c3333444881 (diff) |
tdf#116241 Customizing value highlighting colors
Change-Id: I5d77e6207d1e29326282d7184c9348e59292977a
Reviewed-on: https://gerrit.libreoffice.org/51653
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc/source/ui/view/output.cxx')
-rw-r--r-- | sc/source/ui/view/output.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index a5bf884681ad..0e322ceca8ab 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -61,6 +61,7 @@ #include <scmod.hxx> #include <appoptio.hxx> #include <postit.hxx> +#include <viewopti.hxx> #include <scresid.hxx> #include <colorscale.hxx> @@ -295,9 +296,10 @@ void ScOutputData::SetSyntaxMode( bool bNewMode ) if (bNewMode) if (!pValueColor) { - pValueColor = new Color(COL_LIGHTBLUE); - pTextColor = new Color(COL_BLACK); - pFormulaColor = new Color(COL_GREEN); + const ScViewOptions& rOptions = mpDoc->GetViewOptions(); + pValueColor = new Color(rOptions.GetValueColor()); + pTextColor = new Color(rOptions.GetTextColor()); + pFormulaColor = new Color(rOptions.GetFormulaColor()); } } |