diff options
author | princesinghtomar <singhtomarprince470@gmail.com> | 2020-12-28 16:30:07 +0530 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2021-01-04 16:18:28 +0100 |
commit | b27141d601f9c0cbeb1c9c371816974819fdbd2e (patch) | |
tree | 8265a1c36a57ae4b14f4b4e7fa4d824aa733e8e8 | |
parent | 8414b6167fb06bff660b9d7eca3939f439e96a3b (diff) |
tdf#138654 Number format preview uses dark background and font
Change-Id: I5f2ad87f017159191e39a4a1ce665c01d3223e44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108400
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
(cherry picked from commit 2aff7b2622b3fcc3115037d48e033fe1b7ab627a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108588
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | cui/source/tabpages/numfmt.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 5a6436e8998b..99086823823b 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -141,13 +141,12 @@ void SvxNumberPreview::Paint(vcl::RenderContext& rRenderContext, const ::tools:: rRenderContext.Push(PushFlags::ALL); svtools::ColorConfig aColorConfig; - rRenderContext.SetTextColor(aColorConfig.GetColorValue( svtools::FONTCOLOR ).nColor); - const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); - rRenderContext.SetBackground(rStyleSettings.GetWindowColor()); + rRenderContext.SetTextColor(aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor); + rRenderContext.SetBackground(aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor); vcl::Font aDrawFont = rRenderContext.GetFont(); Size aSzWnd(GetOutputSizePixel()); - OUString aTmpStr( aPrevStr ); + OUString aTmpStr(aPrevStr); tools::Long nLeadSpace = (aSzWnd.Width() - rRenderContext.GetTextWidth(aTmpStr)) / 2; aDrawFont.SetTransparent(true); |