Using NSColor System Colours
Removing the old HITheme Constants for the last two wx system colours, first step for Dark Mode support, see https://trac.wxwidgets.org/ticket/18146
This commit is contained in:
@@ -74,9 +74,14 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
||||
sysColor = [NSColor windowFrameColor];
|
||||
break;
|
||||
case wxSYS_COLOUR_WINDOW:
|
||||
return wxColour(wxMacCreateCGColorFromHITheme( 15 /* kThemeBrushDocumentWindowBackground */ )) ;
|
||||
sysColor = [NSColor windowBackgroundColor];
|
||||
break;
|
||||
case wxSYS_COLOUR_BTNFACE:
|
||||
return wxColour(wxMacCreateCGColorFromHITheme( 3 /* kThemeBrushDialogBackgroundActive */));
|
||||
if ( wxPlatformInfo::Get().CheckOSVersion(10, 14 ) )
|
||||
sysColor = [NSColor windowBackgroundColor];
|
||||
else
|
||||
sysColor = [NSColor controlColor];
|
||||
break;
|
||||
case wxSYS_COLOUR_LISTBOX:
|
||||
sysColor = [NSColor controlBackgroundColor];
|
||||
break;
|
||||
|
Reference in New Issue
Block a user