summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/output.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2018-03-20 16:40:35 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2018-03-21 17:54:47 +0100
commitfb29b8262488d045a926504725669a362bacb5bb (patch)
treec8cb6e160267b46742e0051a8eded6206fb5c1f1 /sc/source/ui/view/output.cxx
parentfc3f43b6fe3df5e46ca869d5934d4c3333444881 (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.cxx8
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());
}
}