+ case wxSYS_COLOUR_SCROLLBAR:
+ case wxSYS_COLOUR_BACKGROUND:
+ //case wxSYS_COLOUR_DESKTOP:
+ case wxSYS_COLOUR_INACTIVECAPTION:
+ case wxSYS_COLOUR_MENU:
+ case wxSYS_COLOUR_WINDOWFRAME:
+ case wxSYS_COLOUR_ACTIVEBORDER:
+ case wxSYS_COLOUR_INACTIVEBORDER:
+ case wxSYS_COLOUR_BTNFACE:
+ //case wxSYS_COLOUR_3DFACE:
+ case wxSYS_COLOUR_3DLIGHT:
+ color = wxColor(ButtonStyle()->bg[GTK_STATE_NORMAL]);
+ break;
+
+ case wxSYS_COLOUR_WINDOW:
+ color = wxColor(TextCtrlStyle()->base[GTK_STATE_NORMAL]);
+ break;
+
+ case wxSYS_COLOUR_MENUBAR:
+ color = wxColor(MenuBarStyle()->bg[GTK_STATE_NORMAL]);
+ break;
+
+ case wxSYS_COLOUR_3DDKSHADOW:
+ color = *wxBLACK;
+ break;
+
+ case wxSYS_COLOUR_GRAYTEXT:
+ case wxSYS_COLOUR_BTNSHADOW:
+ //case wxSYS_COLOUR_3DSHADOW:
+ {
+ wxColour faceColour(GetColour(wxSYS_COLOUR_3DFACE));
+ color =
+ wxColour((unsigned char) (faceColour.Red() * 2 / 3),
+ (unsigned char) (faceColour.Green() * 2 / 3),
+ (unsigned char) (faceColour.Blue() * 2 / 3));
+ }
+ break;
+
+ case wxSYS_COLOUR_BTNHIGHLIGHT:
+ //case wxSYS_COLOUR_BTNHILIGHT:
+ //case wxSYS_COLOUR_3DHIGHLIGHT:
+ //case wxSYS_COLOUR_3DHILIGHT:
+ color = *wxWHITE;
+ break;
+
+ case wxSYS_COLOUR_HIGHLIGHT:
+ color = wxColor(ButtonStyle()->bg[GTK_STATE_SELECTED]);
+ break;
+
+ case wxSYS_COLOUR_LISTBOX:
+ color = wxColor(ListStyle()->base[GTK_STATE_NORMAL]);
+ break;
+
+ case wxSYS_COLOUR_LISTBOXTEXT:
+ color = wxColor(ListStyle()->text[GTK_STATE_NORMAL]);
+ break;
+
+ case wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT:
+ // This is for the text in a list control (or tree) when the
+ // item is selected, but not focused
+ color = wxColor(ListStyle()->text[GTK_STATE_ACTIVE]);
+ break;
+
+ case wxSYS_COLOUR_MENUTEXT:
+ case wxSYS_COLOUR_WINDOWTEXT:
+ case wxSYS_COLOUR_CAPTIONTEXT:
+ case wxSYS_COLOUR_INACTIVECAPTIONTEXT:
+ case wxSYS_COLOUR_BTNTEXT:
+ color = wxColor(ButtonStyle()->fg[GTK_STATE_NORMAL]);
+ break;
+
+ case wxSYS_COLOUR_INFOBK:
+ color = wxColor(ToolTipStyle()->bg[GTK_STATE_NORMAL]);
+ break;
+
+ case wxSYS_COLOUR_INFOTEXT:
+ color = wxColor(ToolTipStyle()->fg[GTK_STATE_NORMAL]);
+ break;
+
+ case wxSYS_COLOUR_HIGHLIGHTTEXT:
+ color = wxColor(ButtonStyle()->fg[GTK_STATE_SELECTED]);
+ break;
+
+ case wxSYS_COLOUR_APPWORKSPACE:
+ color = *wxWHITE; // ?
+ break;
+
+ case wxSYS_COLOUR_ACTIVECAPTION:
+ case wxSYS_COLOUR_MENUHILIGHT:
+ color = wxColor(MenuItemStyle()->bg[GTK_STATE_SELECTED]);
+ break;
+
+ case wxSYS_COLOUR_HOTLIGHT:
+ case wxSYS_COLOUR_GRADIENTACTIVECAPTION:
+ case wxSYS_COLOUR_GRADIENTINACTIVECAPTION:
+ // TODO
+ color = *wxBLACK;
+ break;
+
+ case wxSYS_COLOUR_MAX:
+ default:
+ wxFAIL_MSG( wxT("unknown system colour index") );
+ color = *wxWHITE;
+ break;