diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-13 10:41:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-13 14:52:51 +0200 |
commit | 2734d2e058182a34c576e558138d84358c69ca5a (patch) | |
tree | d2f9ac6bc945c6aa1d3cc6e2e3b540a828d0e8f7 /vcl/source/outdev/gradient.cxx | |
parent | ee0d5e7bb8614c50e71dd074b8440f412eb62ff3 (diff) |
tdf#150622 use high contrast selection fg/bg colors for text selection
with SettingsForSelection
SettingsText -> HighlightTextColor
SettingsFill -> HighlightColor
SettingsLine -> HighlightColor
Change-Id: Iaac5834ce0f8b3f1b89376711b564773cfd0bfe3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141287
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/outdev/gradient.cxx')
-rw-r--r-- | vcl/source/outdev/gradient.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx index bd19cd50a40c..707ca47d960a 100644 --- a/vcl/source/outdev/gradient.cxx +++ b/vcl/source/outdev/gradient.cxx @@ -617,7 +617,12 @@ Color OutputDevice::GetSingleColorGradientFill() else if ( mnDrawMode & DrawModeFlags::WhiteGradient ) aColor = COL_WHITE; else if ( mnDrawMode & DrawModeFlags::SettingsGradient ) - aColor = GetSettings().GetStyleSettings().GetWindowColor(); + { + if (mnDrawMode & DrawModeFlags::SettingsForSelection) + aColor = GetSettings().GetStyleSettings().GetHighlightColor(); + else + aColor = GetSettings().GetStyleSettings().GetWindowColor(); + } return aColor; } |