svtools/source/control/valueset.cxx |   21 ---------------------
 1 file changed, 21 deletions(-)

New commits:
commit d212257f72d277f1da9fc20df0ac45f7f0060eaf
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Oct 26 17:11:19 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Oct 27 14:00:23 2021 +0200

    don't second guess the theme colors in valuesets
    
    Change-Id: I2215ad1d1d1791e27914e0f1dcec32c6827f4f12
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124235
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

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();

Reply via email to