diff options
author | Tünde Tóth <toth.tunde@nisz.hu> | 2021-03-12 11:33:54 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-03-19 21:02:42 +0100 |
commit | aad8b94ed6494e19611a779aed74adca931d14aa (patch) | |
tree | e25674dc6ab50fa0f753e1c1bd4a8bac8d4b5558 /sc | |
parent | c3e703d115981cf9a7e9a2be493eec2ef3f3b95e (diff) |
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>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/cctrl/dpcontrol.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/dpcontrol.cxx b/sc/source/ui/cctrl/dpcontrol.cxx index d7dd13dd5c4e..0419b785b712 100644 --- a/sc/source/ui/cctrl/dpcontrol.cxx +++ b/sc/source/ui/cctrl/dpcontrol.cxx @@ -175,12 +175,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); |