sc/source/ui/cctrl/checklistmenu.cxx |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

New commits:
commit d60520f8aabefd8f2893b8656c555c25be93c16c
Author:     Rafael Lima <rafael.palma.l...@gmail.com>
AuthorDate: Tue Jan 23 23:36:11 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jan 29 10:22:19 2024 +0100

    tdf#159329 Fix AutoFilter arrow color in dark mode
    
    When using dark mode, the arrow is black over a dark background. This patch 
makes it use the dialog text color for better contrast.
    
    Change-Id: Icf07d50599191417dee294e1f4c925fe1a8a7655
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162460
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>
    (cherry picked from commit b0f678ca59a65a3c302c3c3a499230fbc52ed5bd)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162615
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/cctrl/checklistmenu.cxx 
b/sc/source/ui/cctrl/checklistmenu.cxx
index 92e7096fc25a..578c248b7f9c 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -171,14 +171,7 @@ void ScCheckListMenuControl::CreateDropDown()
 {
     const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
 
-    // tdf#151820 The color used for the arrow head depends on the background 
color
-    Color aBackgroundColor = rStyleSettings.GetWindowColor();
-    Color aSpinColor;
-    if (aBackgroundColor.IsDark())
-        aSpinColor = rStyleSettings.GetLightColor();
-    else
-        aSpinColor = rStyleSettings.GetDarkShadowColor();
-
+    Color aSpinColor = rStyleSettings.GetDialogTextColor();
     int nWidth = (mxMenu->get_text_height() * 3) / 4;
     mxDropDown->SetOutputSizePixel(Size(nWidth, nWidth), /*bErase*/true, 
/*bAlphaMaskTransparent*/true);
     DecorationView aDecoView(mxDropDown.get());

Reply via email to