+ 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_MENUBAR:
+ case wxSYS_COLOUR_3DLIGHT:
+ if (!gs_objects.m_colBtnFace.Ok())
+ {
+ int red, green, blue;
+ if ( !GetColourFromGTKWidget(red, green, blue) )
+ {
+ red =
+ green = 0;
+ blue = 0x9c40;
+ }
+
+ gs_objects.m_colBtnFace = wxColour( red >> SHIFT,
+ green >> SHIFT,
+ blue >> SHIFT );
+ }
+ return gs_objects.m_colBtnFace;
+
+ 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 (!gs_objects.m_colBtnShadow.Ok())
+ {
+ wxColour faceColour(GetColour(wxSYS_COLOUR_3DFACE));
+ gs_objects.m_colBtnShadow =
+ wxColour((unsigned char) (faceColour.Red() * 0.666),
+ (unsigned char) (faceColour.Green() * 0.666),
+ (unsigned char) (faceColour.Blue() * 0.666));
+ }
+
+ return gs_objects.m_colBtnShadow;
+
+ case wxSYS_COLOUR_3DHIGHLIGHT:
+ //case wxSYS_COLOUR_BTNHIGHLIGHT:
+ return * wxWHITE;
+
+ case wxSYS_COLOUR_HIGHLIGHT:
+ if (!gs_objects.m_colHighlight.Ok())
+ {
+ int red, green, blue;
+ if ( !GetColourFromGTKWidget(red, green, blue,
+ wxGTK_BUTTON,
+ GTK_STATE_SELECTED) )
+ {
+ red =
+ green = 0;
+ blue = 0x9c40;
+ }
+
+ gs_objects.m_colHighlight = wxColour( red >> SHIFT,
+ green >> SHIFT,
+ blue >> SHIFT );
+ }
+ return gs_objects.m_colHighlight;
+
+ case wxSYS_COLOUR_LISTBOX:
+ if (!gs_objects.m_colListBox.Ok())
+ {
+ int red, green, blue;
+ if ( GetColourFromGTKWidget(red, green, blue,
+ wxGTK_LIST,
+ GTK_STATE_NORMAL,
+ wxGTK_BASE) )
+ {
+ gs_objects.m_colListBox = wxColour( red >> SHIFT,
+ green >> SHIFT,
+ blue >> SHIFT );
+ }
+ else
+ {
+ gs_objects.m_colListBox = wxColour(*wxWHITE);
+ }
+ }
+ return gs_objects.m_colListBox;
+
+ 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 (!gs_objects.m_colBtnText.Ok())
+ {
+ int red, green, blue;
+ if ( !GetColourFromGTKWidget(red, green, blue,
+ wxGTK_BUTTON,
+ GTK_STATE_NORMAL,
+ wxGTK_FG) )
+ {
+ red =
+ green =
+ blue = 0;
+ }
+
+ gs_objects.m_colBtnText = wxColour( red >> SHIFT,
+ green >> SHIFT,
+ blue >> SHIFT );
+ }
+ return gs_objects.m_colBtnText;
+
+ // this (as well as wxSYS_COLOUR_INFOTEXT above) is used for
+ // tooltip windows - Robert, please change this code to use the
+ // real GTK tooltips when/if you can (TODO)
+ case wxSYS_COLOUR_INFOBK:
+ return wxColour(255, 255, 225);
+
+ case wxSYS_COLOUR_HIGHLIGHTTEXT:
+ if (!gs_objects.m_colHighlightText.Ok())
+ {
+ wxColour hclr = GetColour(wxSYS_COLOUR_HIGHLIGHT);
+ if (hclr.Red() > 200 && hclr.Green() > 200 && hclr.Blue() > 200)
+ gs_objects.m_colHighlightText = wxColour(*wxBLACK);
+ else
+ gs_objects.m_colHighlightText = wxColour(*wxWHITE);
+ }
+ return gs_objects.m_colHighlightText;
+
+ case wxSYS_COLOUR_APPWORKSPACE:
+ return *wxWHITE; // ?
+
+ case wxSYS_COLOUR_HOTLIGHT:
+ case wxSYS_COLOUR_GRADIENTACTIVECAPTION:
+ case wxSYS_COLOUR_GRADIENTINACTIVECAPTION:
+ case wxSYS_COLOUR_MENUHILIGHT:
+ // TODO
+ return *wxBLACK;
+
+ case wxSYS_COLOUR_MAX:
+ default:
+ wxFAIL_MSG( _T("unknown system colour index") );
+ }
+
+ return *wxWHITE;
+}
+
+wxFont wxSystemSettingsNative::GetFont( wxSystemFont index )
+{
+ switch (index)