From d212257f72d277f1da9fc20df0ac45f7f0060eaf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 26 Oct 2021 17:11:19 +0100 Subject: don't second guess the theme colors in valuesets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2215ad1d1d1791e27914e0f1dcec32c6827f4f12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124235 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svtools/source/control/valueset.cxx | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'svtools') diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 4993bb9a7a93..a2865562b37a 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1229,27 +1229,6 @@ sal_uInt16 ValueSet::ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt Color aDoubleColor(rStyleSettings.GetHighlightColor()); Color aSingleColor(rStyleSettings.GetHighlightTextColor()); - if (!mbDoubleSel) - { - /* - * #99777# contrast enhancement for thin mode - */ - const Wallpaper& rWall = maVirDev->GetBackground(); - if (!rWall.IsBitmap() && ! rWall.IsGradient()) - { - const Color& rBack = rWall.GetColor(); - if (rBack.IsDark() && ! aDoubleColor.IsBright()) - { - aDoubleColor = COL_WHITE; - aSingleColor = COL_BLACK; - } - else if (rBack.IsBright() && !aDoubleColor.IsDark()) - { - aDoubleColor = COL_BLACK; - aSingleColor = COL_WHITE; - } - } - } // specify selection output WinBits nStyle = GetStyle(); -- cgit