summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/patattr.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 8998f697489d..b5814947b906 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -805,7 +805,17 @@ void ScPatternAttr::fillColor(model::ComplexColor& rComplexColor, const SfxItemS
aSysTextColor = SC_MOD()->GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor;
}
- aColor = aSysTextColor;
+ if (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current())
+ {
+ if (aBackColor.IsDark())
+ aColor = COL_WHITE;
+ else
+ aColor = COL_BLACK;
+ }
+ else
+ {
+ aColor = aSysTextColor;
+ }
}
aComplexColor.setFinalColor(aColor);
rComplexColor = std::move(aComplexColor);