sc/source/ui/cctrl/dpcontrol.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit d14c827cd0affa26fdfe0e4a3939d2b4a0c6250d
Author:     Tünde Tóth <toth.tu...@nisz.hu>
AuthorDate: Fri Mar 12 11:33:54 2021 +0100
Commit:     Gabor Kelemen <kelemen.gab...@nisz.hu>
CommitDate: Tue Jun 29 09:59:27 2021 +0200

    tdf#140955 sc UI: highlight active autofilter dropdown
    
    arrow by inverting its colors, as suggested by Heiko Tietze.
    
    The small difference in the active and inactive arrow shapes
    (a dot in the corner) is much more visible this way.
    
    Change-Id: I784fcb809549b22930037d28e007c2a42dcff337
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112378
    Tested-by: László Németh <nem...@numbertext.org>
    Reviewed-by: László Németh <nem...@numbertext.org>
    (cherry picked from commit aad8b94ed6494e19611a779aed74adca931d14aa)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118063
    Tested-by: Gabor Kelemen <kelemen.gab...@nisz.hu>
    Reviewed-by: Gabor Kelemen <kelemen.gab...@nisz.hu>

diff --git a/sc/source/ui/cctrl/dpcontrol.cxx b/sc/source/ui/cctrl/dpcontrol.cxx
index 24620cdbd661..408a4f0505be 100644
--- a/sc/source/ui/cctrl/dpcontrol.cxx
+++ b/sc/source/ui/cctrl/dpcontrol.cxx
@@ -168,12 +168,14 @@ void ScDPFieldButton::drawPopupButton()
 
     // Background & outer black border
     mpOutDev->SetLineColor(COL_BLACK);
-    Color aBackgroundColor = mbPopupPressed ? mpStyle->GetShadowColor() : 
mpStyle->GetFaceColor();
+    Color aBackgroundColor
+        = mbHasHiddenMember ? mpStyle->GetHighlightColor()
+                            : mbPopupPressed ? mpStyle->GetShadowColor() : 
mpStyle->GetFaceColor();
     mpOutDev->SetFillColor(aBackgroundColor);
     mpOutDev->DrawRect(tools::Rectangle(aPos, aSize));
 
     // the arrowhead
-    Color aArrowColor = mbHasHiddenMember ? mpStyle->GetHighlightLinkColor() : 
mpStyle->GetButtonTextColor();
+    Color aArrowColor = mbHasHiddenMember ? mpStyle->GetHighlightTextColor() : 
mpStyle->GetButtonTextColor();
     mpOutDev->SetLineColor(aArrowColor);
     mpOutDev->SetFillColor(aArrowColor);
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to