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
@@ -115,8 +115,17 @@ public:
|
||||
class WXDLLIMPEXP_HTML wxDefaultHtmlRenderingStyle : public wxHtmlRenderingStyle
|
||||
{
|
||||
public:
|
||||
explicit wxDefaultHtmlRenderingStyle(const wxWindowBase* wnd = NULL)
|
||||
: m_wnd(wnd)
|
||||
{}
|
||||
|
||||
virtual wxColour GetSelectedTextColour(const wxColour& clr) wxOVERRIDE;
|
||||
virtual wxColour GetSelectedTextBgColour(const wxColour& clr) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
const wxWindowBase* const m_wnd;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxDefaultHtmlRenderingStyle);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user