- }
- case wxSYS_COLOUR_MENUTEXT:
- case wxSYS_COLOUR_WINDOWTEXT:
- case wxSYS_COLOUR_CAPTIONTEXT:
- case wxSYS_COLOUR_INACTIVECAPTIONTEXT:
- case wxSYS_COLOUR_BTNTEXT:
- case wxSYS_COLOUR_INFOTEXT:
- {
- return *wxBLACK;
- }
- 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; // ?
- }
+
+ 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 = GetColour(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; // ?