feat: add mac support to systemPrefs.getAccentColor() (#16251)

* feat: add mac support to systemPrefs.getAccentColor()

* note 10.14 retriction
This commit is contained in:
Shelley Vohr 2019-01-03 13:24:55 -08:00 committed by GitHub
parent 5c378de22f
commit 439ba5116f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 3 deletions

View file

@ -37,6 +37,11 @@ typedef NS_ENUM(NSInteger, AVAuthorizationStatusMac) {
(AVMediaType)mediaType API_AVAILABLE(macosx(10.14));
@end
@interface NSColor (MojaveSDK)
@property(class, strong, readonly)
NSColor* controlAccentColor API_AVAILABLE(macosx(10.14));
@end
extern "C" {
#if !defined(MAC_OS_X_VERSION_10_14) || \
MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_14