diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-12 10:21:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-12 17:02:58 +0200 |
commit | d6a5431b5ef369823e4438a34767bf6c234eb231 (patch) | |
tree | cc119dc31d45e7ba4b43a141e7ab1a79589ac60f | |
parent | e20d2de7836da52dbf9e528d1043b1e188097bfd (diff) |
use WindowTextColor as the fg for high contrast
No platform sets TextColor away from its default of black and we're
using WindowColor as the bg for high contrast, so we need to use
something suitable for use on WindowColor. MSDN docs state
COLOR_WINDOWTEXT for HighContrast if using COLOR_WINDOW.
Change-Id: Icdd3cf6d76da7eb544f08619717689b44ab1fd38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141247
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/rendercontext/drawmode.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/rendercontext/drawmode.cxx b/vcl/source/rendercontext/drawmode.cxx index b1b85d33f52f..fe0a1660acd5 100644 --- a/vcl/source/rendercontext/drawmode.cxx +++ b/vcl/source/rendercontext/drawmode.cxx @@ -53,7 +53,7 @@ Color GetLineColor(Color const& rColor, DrawModeFlags nDrawMode, } else if (nDrawMode & DrawModeFlags::SettingsLine) { - aColor = rStyleSettings.GetFontColor(); + aColor = rStyleSettings.GetWindowTextColor(); } } } @@ -119,7 +119,7 @@ Color GetHatchColor(Color const& rColor, DrawModeFlags nDrawMode, } else if (nDrawMode & DrawModeFlags::SettingsLine) { - aColor = rStyleSettings.GetFontColor(); + aColor = rStyleSettings.GetWindowTextColor(); } return aColor; @@ -149,7 +149,7 @@ Color GetTextColor(Color const& rColor, DrawModeFlags nDrawMode, } else if (nDrawMode & DrawModeFlags::SettingsText) { - aColor = rStyleSettings.GetFontColor(); + aColor = rStyleSettings.GetWindowTextColor(); } } @@ -183,7 +183,7 @@ vcl::Font GetFont(vcl::Font const& rFont, DrawModeFlags nDrawMode, } else if (nDrawMode & DrawModeFlags::SettingsText) { - aTextColor = rStyleSettings.GetFontColor(); + aTextColor = rStyleSettings.GetWindowTextColor(); } aFont.SetColor(aTextColor); |