summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-27 17:23:18 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-27 21:39:25 +0100
commit6f89e03f3903474bc51ef8396eb366326cfc254c (patch)
tree0759650767f8a52b748df386b583a9c3259b5b7f
parent3f1272c0e2e3aa30e6c781a2bcd83e98d62408b7 (diff)
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/+/165405 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--vcl/source/window/printdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 3acd7ddb1ab1..35cbccf79ab1 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();