vcl/source/window/printdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3afff38aa196f1538b7ba3aa060f54a7f6e44f5e Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Mar 27 17:23:18 2024 +0000 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Mar 28 12:51:13 2024 +0100 Resolves: tdf#160392 preview's measurement are black on dark bg in dark mode Change-Id: I538750ef7d20ecc17a60ce47989eeaf0390a0103 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165414 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> (cherry picked from commit d3ed3836cbec932f8a381fcb2c85787fb0f8b766) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165423 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index 4ea3c6ca69e8..a9a0ba1a6554 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -122,7 +122,7 @@ void PrintDialog::PrintPreviewWindow::Paint(vcl::RenderContext& rRenderContext, { rRenderContext.Push(); weld::SetPointFont(rRenderContext, rRenderContext.GetSettings().GetStyleSettings().GetLabelFont()); - + rRenderContext.SetTextColor(rRenderContext.GetSettings().GetStyleSettings().GetLabelTextColor()); rRenderContext.SetBackground(Wallpaper(Application::GetSettings().GetStyleSettings().GetDialogColor())); rRenderContext.Erase();