+ case wxSYS_COLOUR_SCROLLBAR:
+ case wxSYS_COLOUR_BACKGROUND:
+ case wxSYS_COLOUR_ACTIVECAPTION:
+ 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_3DLIGHT:
+ if (!g_systemBtnFaceColour)
+ {
+ int red, green, blue;
+ if ( !GetColourFromGTKWidget(red, green, blue) )
+ {
+ red =
+ green = 0;
+ blue = 0x9c40;
+ }
+
+ g_systemBtnFaceColour = new wxColour( red >> SHIFT,
+ green >> SHIFT,
+ blue >> SHIFT );
+ }
+ return *g_systemBtnFaceColour;
+
+ case wxSYS_COLOUR_WINDOW:
+ return *wxWHITE;
+
+ case wxSYS_COLOUR_3DDKSHADOW:
+ return *wxBLACK;
+
+ case wxSYS_COLOUR_GRAYTEXT:
+ case wxSYS_COLOUR_BTNSHADOW:
+ //case wxSYS_COLOUR_3DSHADOW:
+ if (!g_systemBtnShadowColour)
+ {
+ wxColour faceColour(GetSystemColour(wxSYS_COLOUR_3DFACE));
+ g_systemBtnShadowColour =
+ new wxColour((unsigned char) (faceColour.Red() * 0.666),
+ (unsigned char) (faceColour.Green() * 0.666),
+ (unsigned char) (faceColour.Blue() * 0.666));
+ }
+
+ return *g_systemBtnShadowColour;
+
+ case wxSYS_COLOUR_3DHIGHLIGHT:
+ //case wxSYS_COLOUR_BTNHIGHLIGHT:
+ return * wxWHITE;
+/* I think this should normally be white (JACS 8/2000)
+
+ Hmm, I'm quite sure it shouldn't ... (VZ 20.08.01)
+ if (!g_systemBtnHighlightColour)
+ {
+ g_systemBtnHighlightColour =
+ new wxColour( 0xea60 >> SHIFT,
+ 0xea60 >> SHIFT,
+ 0xea60 >> SHIFT );
+ }
+ return *g_systemBtnHighlightColour;
+*/
+
+ case wxSYS_COLOUR_HIGHLIGHT:
+ if (!g_systemHighlightColour)
+ {
+ int red, green, blue;
+ if ( !GetColourFromGTKWidget(red, green, blue,
+ wxGTK_BUTTON,
+ GTK_STATE_SELECTED) )
+ {
+ red =
+ green = 0;
+ blue = 0x9c40;
+ }
+
+ g_systemHighlightColour = new wxColour( red >> SHIFT,
+ green >> SHIFT,
+ blue >> SHIFT );
+ }
+ return *g_systemHighlightColour;
+
+ case wxSYS_COLOUR_LISTBOX:
+ if (!g_systemListBoxColour)
+ {
+ int red, green, blue;
+ if ( GetColourFromGTKWidget(red, green, blue,
+ wxGTK_LIST,
+ GTK_STATE_NORMAL,
+ wxGTK_BASE) )
+ {
+ g_systemListBoxColour = new wxColour( red >> SHIFT,
+ green >> SHIFT,
+ blue >> SHIFT );
+ }
+ else
+ {
+ g_systemListBoxColour = new wxColour(*wxWHITE);
+ }
+ }
+ return *g_systemListBoxColour;
+
+ case wxSYS_COLOUR_MENUTEXT:
+ case wxSYS_COLOUR_WINDOWTEXT:
+ case wxSYS_COLOUR_CAPTIONTEXT:
+ case wxSYS_COLOUR_INACTIVECAPTIONTEXT:
+ case wxSYS_COLOUR_BTNTEXT:
+ case wxSYS_COLOUR_INFOTEXT:
+ if (!g_systemBtnTextColour)
+ {
+ int red, green, blue;
+ if ( !GetColourFromGTKWidget(red, green, blue,
+ wxGTK_BUTTON,
+ GTK_STATE_NORMAL,
+ wxGTK_FG) )
+ {
+ red =
+ green =
+ blue = 0;
+ }
+
+ g_systemBtnTextColour = new wxColour( red >> SHIFT,
+ green >> SHIFT,
+ blue >> SHIFT );
+ }
+ return *g_systemBtnTextColour;
+
+ case wxSYS_COLOUR_HIGHLIGHTTEXT:
+ if (!g_systemHighlightTextColour)
+ {
+ wxColour hclr = GetSystemColour(wxSYS_COLOUR_HIGHLIGHT);
+ if (hclr.Red() > 200 && hclr.Green() > 200 && hclr.Blue() > 200)
+ g_systemHighlightTextColour = new wxColour(*wxBLACK);
+ else
+ g_systemHighlightTextColour = new wxColour(*wxWHITE);
+ }
+ return *g_systemHighlightTextColour;
+
+ case wxSYS_COLOUR_INFOBK:
+ case wxSYS_COLOUR_APPWORKSPACE:
+ return *wxWHITE; // ?
+ }
+
+ return *wxWHITE;
+}
+
+wxFont wxSystemSettings::GetSystemFont( int index )
+{
+ switch (index)