diff options
-rw-r--r-- | vcl/source/control/imp_listbox.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx index 32a82b1ac2cf..b2e002a05ef5 100644 --- a/vcl/source/control/imp_listbox.cxx +++ b/vcl/source/control/imp_listbox.cxx @@ -2683,18 +2683,16 @@ void ImplWin::ImplDraw(vcl::RenderContext& rRenderContext, bool bLayout) if (bHasFocus && !ImplGetSVData()->maNWFData.mbDDListBoxNoTextArea) { if ( !ImplGetSVData()->maNWFData.mbNoFocusRects ) + { rRenderContext.SetFillColor( rStyleSettings.GetHighlightColor() ); + rRenderContext.SetTextColor( rStyleSettings.GetHighlightTextColor() ); + } else { rRenderContext.SetLineColor(); rRenderContext.SetFillColor(); + rRenderContext.SetTextColor( rStyleSettings.GetFieldTextColor() ); } - Color aColor; - if( bNativeOK && (nState & ControlState::ROLLOVER) ) - aColor = rStyleSettings.GetFieldRolloverTextColor(); - else - aColor = rStyleSettings.GetFieldTextColor(); - rRenderContext.SetTextColor( aColor ); rRenderContext.DrawRect( maFocusRect ); } else |