summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-26 17:11:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-27 14:00:23 +0200
commitd212257f72d277f1da9fc20df0ac45f7f0060eaf (patch)
treee78137ceeca21cbd18c0f2b001a49f124190afb8 /svtools/source
parente210c66015beed1632188764d0680247237b7707 (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/control/valueset.cxx21
1 files changed, 0 insertions, 21 deletions
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();