[Libreoffice-commits] core.git: Branch 'distro/nisz/libreoffice-7-0' - sc/source
Tünde Tóth (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 29 10:30:38 UTC 2021
sc/source/ui/cctrl/dpcontrol.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit f2e8d04cf4b960f1fd21b4f557e9e1f3849dd815
Author: Tünde Tóth <toth.tunde at nisz.hu>
AuthorDate: Fri Mar 12 11:33:54 2021 +0100
Commit: Gabor Kelemen <kelemen.gabor2 at nisz.hu>
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 <nemeth at numbertext.org>
Reviewed-by: László Németh <nemeth at numbertext.org>
(cherry picked from commit aad8b94ed6494e19611a779aed74adca931d14aa)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114858
Tested-by: Gabor Kelemen <kelemen.gabor2 at nisz.hu>
Reviewed-by: Gabor Kelemen <kelemen.gabor2 at nisz.hu>
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);
More information about the Libreoffice-commits
mailing list