vcl/source/window/toolbox.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 05f9fb98bb64f15e0df6a7ca88b5391e051c2ebf
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Oct 28 21:25:04 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Oct 29 11:21:51 2022 +0200

    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 <caol...@redhat.com>

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();

Reply via email to