Remove wxPropertyGrid colours not recognized by wxColour.
Don't use colour names which can't be used to successfully initialize wxColour. This is not the best solution, we probably should add these names to the colour database instead, but for now it's better than getting errors when trying to use these colours for colour properties in wxPropertyGrid. See #15597. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
16ab50d25b
commit
26c7a01f1d
@ -1518,46 +1518,28 @@ bool wxSystemColourProperty::DoSetAttribute( const wxString& name, wxVariant& va
|
||||
|
||||
static const wxChar* const gs_cp_es_normcolour_labels[] = {
|
||||
wxT("Black"),
|
||||
wxT("Maroon"),
|
||||
wxT("Navy"),
|
||||
wxT("Purple"),
|
||||
wxT("Teal"),
|
||||
wxT("Gray"),
|
||||
wxT("Green"),
|
||||
wxT("Olive"),
|
||||
wxT("Brown"),
|
||||
wxT("Blue"),
|
||||
wxT("Fuchsia"),
|
||||
wxT("Red"),
|
||||
wxT("Orange"),
|
||||
wxT("Silver"),
|
||||
wxT("Lime"),
|
||||
wxT("Aqua"),
|
||||
wxT("Green"),
|
||||
wxT("Blue"),
|
||||
wxT("Cyan"),
|
||||
wxT("Magenta"),
|
||||
wxT("Yellow"),
|
||||
wxT("White"),
|
||||
wxT("Grey"),
|
||||
wxT("Custom"),
|
||||
(const wxChar*) NULL
|
||||
};
|
||||
|
||||
static const unsigned long gs_cp_es_normcolour_colours[] = {
|
||||
wxPG_COLOUR(0,0,0),
|
||||
wxPG_COLOUR(128,0,0),
|
||||
wxPG_COLOUR(0,0,128),
|
||||
wxPG_COLOUR(128,0,128),
|
||||
wxPG_COLOUR(0,128,128),
|
||||
wxPG_COLOUR(128,128,128),
|
||||
wxPG_COLOUR(0,128,0),
|
||||
wxPG_COLOUR(128,128,0),
|
||||
wxPG_COLOUR(166,124,81),
|
||||
wxPG_COLOUR(0,0,255),
|
||||
wxPG_COLOUR(255,0,255),
|
||||
wxPG_COLOUR(255,0,0),
|
||||
wxPG_COLOUR(247,148,28),
|
||||
wxPG_COLOUR(192,192,192),
|
||||
wxPG_COLOUR(0,255,0),
|
||||
wxPG_COLOUR(0,0,255),
|
||||
wxPG_COLOUR(0,255,255),
|
||||
wxPG_COLOUR(255,0,255),
|
||||
wxPG_COLOUR(255,255,0),
|
||||
wxPG_COLOUR(255,255,255),
|
||||
wxPG_COLOUR(128,128,128),
|
||||
wxPG_COLOUR(0,0,0)
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user