summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-08-23 10:12:45 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2018-08-24 08:02:54 +0200
commit9897fd1c4715e7dbbe99fae2b82c2eda1d2b6f7e (patch)
tree31fb1179d970223500e6c9a2723a08ad01d954a5 /vcl
parent2902771581ccd6465b3e8cdca0aa3fcb6d51ca60 (diff)
Fix list box focused text color
This ignores the rollover state for text colors if the list box has the focus and just uses the highlight text color. This is visible in the "gen" VCL plugin and on Windows, e.g. when the focus is in the Math symbol list box. Change-Id: I00602e2a2601060f8588e474380dfa9af64a9094 Reviewed-on: https://gerrit.libreoffice.org/59488 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/imp_listbox.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx
index 46418d2a1b22..67d40ca6267d 100644
--- a/vcl/source/control/imp_listbox.cxx
+++ b/vcl/source/control/imp_listbox.cxx
@@ -2690,12 +2690,7 @@ void ImplWin::ImplDraw(vcl::RenderContext& rRenderContext, bool bLayout)
rRenderContext.SetLineColor();
rRenderContext.SetFillColor();
}
- Color aColor;
- if( bNativeOK && (nState & ControlState::ROLLOVER) )
- aColor = rStyleSettings.GetFieldRolloverTextColor();
- else
- aColor = rStyleSettings.GetFieldTextColor();
- rRenderContext.SetTextColor( aColor );
+ rRenderContext.SetTextColor( rStyleSettings.GetHighlightTextColor() );
rRenderContext.DrawRect( maFocusRect );
}
else