summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTünde Tóth <toth.tunde@nisz.hu>2021-03-12 11:33:54 +0100
committerGabor Kelemen <kelemen.gabor2@nisz.hu>2021-04-29 12:30:00 +0200
commitf2e8d04cf4b960f1fd21b4f557e9e1f3849dd815 (patch)
treea3a3eaf811d8f13adfa3f8ce30368518a2ab2be7
parenttdf#118693: no need to use convertMm100ToTwip() for line shapes anymore (diff)
downloadcore-f2e8d04cf4b960f1fd21b4f557e9e1f3849dd815.tar.gz
core-f2e8d04cf4b960f1fd21b4f557e9e1f3849dd815.zip
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 <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit aad8b94ed6494e19611a779aed74adca931d14aa) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114858 Tested-by: Gabor Kelemen <kelemen.gabor2@nisz.hu> Reviewed-by: Gabor Kelemen <kelemen.gabor2@nisz.hu>
-rw-r--r--sc/source/ui/cctrl/dpcontrol.cxx6
1 files changed, 4 insertions, 2 deletions
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);