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

New commits:
commit f2e8d04cf4b960f1fd21b4f557e9e1f3849dd815
Author:     Tünde Tóth <[email protected]>
AuthorDate: Fri Mar 12 11:33:54 2021 +0100
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Thu Apr 29 12:30:00 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 <[email protected]>
    Reviewed-by: László Németh <[email protected]>
    (cherry picked from commit aad8b94ed6494e19611a779aed74adca931d14aa)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114858
    Tested-by: Gabor Kelemen <[email protected]>
    Reviewed-by: Gabor Kelemen <[email protected]>

diff --git a/sc/source/ui/cctrl/dpcontrol.cxx b/sc/source/ui/cctrl/dpcontrol.cxx
index 2ca413055000..b4542aca75f7 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to