- // some combinations of the fg/bg colours may be unreadable, so we invert
- // the colour to make sure fg colour is different enough from m_colour
- wxColour colFg(~m_colour.Red(), ~m_colour.Green(), ~m_colour.Blue());
-
- SetForegroundColour(colFg);
- SetBackgroundColour(m_colour);
-
- if ( HasFlag(wxCLRP_SHOW_LABEL) )
- SetLabel(m_colour.GetAsString(wxC2S_HTML_SYNTAX));