Implement wxSYS_COLOUR_HOTLIGHT on macOS
* There is linkColor avaiable since 10.10. Just use it. * https://developer.apple.com/documentation/appkit/nscolor/2998828-linkcolor * https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/color/
This commit is contained in:
parent
7158c9b5be
commit
5dab468444
@ -163,8 +163,15 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
||||
sysColor = [NSColor windowBackgroundColor];
|
||||
break;
|
||||
case wxSYS_COLOUR_HOTLIGHT:
|
||||
// OSX doesn't change color on mouse hover
|
||||
sysColor = [NSColor controlTextColor];
|
||||
if ( WX_IS_MACOS_AVAILABLE(10, 10) )
|
||||
{
|
||||
sysColor = [NSColor linkColor];
|
||||
}
|
||||
else
|
||||
{
|
||||
// OSX doesn't change color on mouse hover
|
||||
sysColor = [NSColor controlTextColor];
|
||||
}
|
||||
break;
|
||||
case wxSYS_COLOUR_MENUHILIGHT:
|
||||
sysColor = [NSColor selectedMenuItemColor];
|
||||
|
Loading…
Reference in New Issue
Block a user