- case wxSYS_COLOUR_SCROLLBAR :
- case wxSYS_COLOUR_BACKGROUND:
- case wxSYS_COLOUR_ACTIVECAPTION:
- case wxSYS_COLOUR_INACTIVECAPTION:
- case wxSYS_COLOUR_MENU:
- case wxSYS_COLOUR_WINDOW:
- case wxSYS_COLOUR_WINDOWFRAME:
- case wxSYS_COLOUR_ACTIVEBORDER:
- case wxSYS_COLOUR_INACTIVEBORDER:
- case wxSYS_COLOUR_BTNFACE:
- case wxSYS_COLOUR_MENUBAR:
- return wxColor( 0xDD , 0xDD , 0xDD ) ;
- break ;
-
- case wxSYS_COLOUR_LISTBOX :
+ case wxSYS_COLOUR_SCROLLBAR:
+ return wxColour([NSColor scrollBarColor]); // color of slot
+ case wxSYS_COLOUR_BACKGROUND: // No idea how to get desktop background
+ break; // break so we return an invalid colour.
+ case wxSYS_COLOUR_ACTIVECAPTION: // No idea how to get this
+ // fall through, window background is reasonable
+ case wxSYS_COLOUR_INACTIVECAPTION: // No idea how to get this
+ // fall through, window background is reasonable
+ case wxSYS_COLOUR_MENU:
+ case wxSYS_COLOUR_MENUBAR:
+ case wxSYS_COLOUR_WINDOW:
+ case wxSYS_COLOUR_WINDOWFRAME:
+ case wxSYS_COLOUR_ACTIVEBORDER:
+ case wxSYS_COLOUR_INACTIVEBORDER:
+ return wxColour([NSColor windowFrameColor]);
+ case wxSYS_COLOUR_BTNFACE:
+ return wxColour([NSColor knobColor]); // close enough?
+ case wxSYS_COLOUR_LISTBOX:
+ return wxColour([NSColor controlBackgroundColor]);
+ case wxSYS_COLOUR_BTNSHADOW:
+ return wxColour([NSColor controlShadowColor]);
+ case wxSYS_COLOUR_BTNTEXT:
+ case wxSYS_COLOUR_MENUTEXT:
+ case wxSYS_COLOUR_WINDOWTEXT:
+ case wxSYS_COLOUR_CAPTIONTEXT:
+ case wxSYS_COLOUR_INFOTEXT:
+ case wxSYS_COLOUR_INACTIVECAPTIONTEXT:
+ return wxColour([NSColor controlTextColor]);
+ case wxSYS_COLOUR_HIGHLIGHT:
+ return wxColour([NSColor selectedControlColor]);
+ case wxSYS_COLOUR_BTNHIGHLIGHT:
+ return wxColour([NSColor controlHighlightColor]);
+ case wxSYS_COLOUR_GRAYTEXT:
+ return wxColour([NSColor disabledControlTextColor]);
+ case wxSYS_COLOUR_3DDKSHADOW:
+ return wxColour([NSColor controlShadowColor]);
+ case wxSYS_COLOUR_3DLIGHT:
+ return wxColour([NSColor controlHighlightColor]);
+ case wxSYS_COLOUR_HIGHLIGHTTEXT:
+ return wxColour([NSColor selectedControlTextColor]);
+ case wxSYS_COLOUR_INFOBK:
+ // tooltip (bogus)
+ return wxColour([NSColor controlBackgroundColor]);
+ case wxSYS_COLOUR_APPWORKSPACE:
+ // MDI window color (bogus)
+ return wxColour([NSColor windowBackgroundColor]);
+ case wxSYS_COLOUR_HOTLIGHT:
+ break; // what is this?
+ case wxSYS_COLOUR_GRADIENTACTIVECAPTION:
+ case wxSYS_COLOUR_GRADIENTINACTIVECAPTION:
+ break; // Doesn't really apply to Cocoa.
+ case wxSYS_COLOUR_MENUHILIGHT:
+ return wxColour([NSColor selectedMenuItemColor]);
+ case wxSYS_COLOUR_MAX:
+ default:
+ if(index>=wxSYS_COLOUR_MAX)