summaryrefslogtreecommitdiff
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-01 09:14:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-01 11:08:20 +0100
commitd45d65559f11ecb34b14e3b5c838391c62c8c694 (patch)
treead77aa4b6adbb1032b1ef32f45a6f1bc284669b0 /sw/source/ui/config
parent6d77d826c15807e80ccfff749908332e09c9f6f6 (diff)
Resolves: tdf#152329 Caption preview font is black when using OS dark mode
Change-Id: I2ed9ae77ecb9a5a83d88dce5a2834e6c882cfec1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143515 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/optload.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index 9e3ba24a1f92..93d6b7e4dabe 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -375,10 +375,12 @@ SwCaptionPreview::SwCaptionPreview()
void SwCaptionPreview::ApplySettings(vcl::RenderContext& rRenderContext)
{
- Wallpaper aBack(rRenderContext.GetSettings().GetStyleSettings().GetWindowColor());
+ const StyleSettings& rSettings = rRenderContext.GetSettings().GetStyleSettings();
+ Wallpaper aBack(rSettings.GetWindowColor());
rRenderContext.SetBackground(aBack);
rRenderContext.SetFillColor(aBack.GetColor());
rRenderContext.SetLineColor(aBack.GetColor());
+ rRenderContext.SetTextColor(rSettings.GetWindowTextColor());
if (!mbFontInitialized)
{