[Libreoffice-commits] core.git: cui/source
princesinghtomar (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jan 4 09:15:30 UTC 2021
cui/source/tabpages/numfmt.cxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 2aff7b2622b3fcc3115037d48e033fe1b7ab627a
Author: princesinghtomar <singhtomarprince470 at gmail.com>
AuthorDate: Mon Dec 28 16:30:07 2020 +0530
Commit: Heiko Tietze <heiko.tietze at documentfoundation.org>
CommitDate: Mon Jan 4 10:14:52 2021 +0100
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 at documentfoundation.org>
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index 6ff9acdb5641..f51adcae2813 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);
More information about the Libreoffice-commits
mailing list