Fix selection background colour in wxHtmlWindow
Use inactive selection colour when the window doesn't have focus.
This commit is contained in:
committed by
Vadim Zeitlin
parent
244547a010
commit
ef524931cc
@@ -1138,7 +1138,7 @@ void wxHtmlWindow::OnPaint(wxPaintEvent& WXUNUSED(event))
|
||||
dc->SetLayoutDirection(GetLayoutDirection());
|
||||
|
||||
wxHtmlRenderingInfo rinfo;
|
||||
wxDefaultHtmlRenderingStyle rstyle;
|
||||
wxDefaultHtmlRenderingStyle rstyle(this);
|
||||
rinfo.SetSelection(m_selection);
|
||||
rinfo.SetStyle(&rstyle);
|
||||
m_Cell->Draw(*dc, 0, 0,
|
||||
|
Reference in New Issue
Block a user