summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-08 16:37:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-08 19:26:57 +0000
commit102e15d6f3960b0ea357b89243b6fe85df34bfec (patch)
tree8cf78269bb61c82d71896e361c7eae7542838e4e /vcl
parent7b3e0639962bab6e757381ad2b3e4868c61ed3b7 (diff)
Related: tdf#152486 infobar is white text on light button in light mode
background isn't "bright" or "dark" enough to be considered one or the other. This is only used for the infobars, so black text is good enough for the current bg colors in use. Change-Id: I4c2c4fadac72cc35aebeadec417186c6358c0a77 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146667 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 46d7b5123d82..98dc12397361 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -908,8 +908,6 @@ void PushButton::ImplDrawPushButtonContent(OutputDevice *pDev, SystemTextColorFl
{
if (aColor.IsBright() && !pParent->GetControlBackground().IsDark())
aColor = COL_BLACK;
- else if (aColor.IsDark() && !pParent->GetControlBackground().IsBright())
- aColor = COL_WHITE;
}
}
#endif