summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-28 21:25:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-10-29 11:21:51 +0200
commit05f9fb98bb64f15e0df6a7ca88b5391e051c2ebf (patch)
treed42c370a5b968a2604952b408702f613d3a10d08 /vcl
parent4c8b1fa44d4f49510d3910981e649dcb08bceb36 (diff)
use WindowColor instead of White for highlighted toolbox items
White doesn't work well for a dark theme Change-Id: I841f5df1fee95e9974e312ee058c54f47763fb0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142001 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/toolbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index bd2f5f5ffa35..c0375583350c 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -538,7 +538,7 @@ void ToolBox::ImplErase(vcl::RenderContext& rRenderContext, const tools::Rectang
// choose the same color as the popup will use
rRenderContext.SetFillColor(rRenderContext.GetSettings().GetStyleSettings().GetFaceGradientColor());
else
- rRenderContext.SetFillColor(COL_WHITE);
+ rRenderContext.SetFillColor(rRenderContext.GetSettings().GetStyleSettings().GetWindowColor());
rRenderContext.DrawRect(rRect);
rRenderContext.Pop();