diff --git a/Easydict/App/Assets.xcassets/setting/toolbar_privacy.imageset/Contents.json b/Easydict/App/Assets.xcassets/setting/toolbar_privacy.imageset/Contents.json index d6c01d3c7..4d3912c0e 100644 --- a/Easydict/App/Assets.xcassets/setting/toolbar_privacy.imageset/Contents.json +++ b/Easydict/App/Assets.xcassets/setting/toolbar_privacy.imageset/Contents.json @@ -10,7 +10,6 @@ "scale" : "2x" }, { - "filename" : "Privacy.png", "idiom" : "universal", "scale" : "3x" } diff --git a/Easydict/App/Assets.xcassets/setting/toolbar_privacy.imageset/Privacy.png b/Easydict/App/Assets.xcassets/setting/toolbar_privacy.imageset/Privacy.png deleted file mode 100644 index 12ccf9bf3..000000000 Binary files a/Easydict/App/Assets.xcassets/setting/toolbar_privacy.imageset/Privacy.png and /dev/null differ diff --git a/Easydict/Feature/PerferenceWindow/EZPrivacyViewController.m b/Easydict/Feature/PerferenceWindow/EZPrivacyViewController.m index d0f75f40b..e5fc7ccd3 100644 --- a/Easydict/Feature/PerferenceWindow/EZPrivacyViewController.m +++ b/Easydict/Feature/PerferenceWindow/EZPrivacyViewController.m @@ -143,12 +143,14 @@ - (NSString *)toolbarItemLabel { } - (NSImage *)toolbarItemImage { - // NSImage *privacyImage = [NSImage imageWithSystemSymbolName:@"hand.raised.square.fill" accessibilityDescription:nil]; - // privacyImage = [privacyImage imageWithTintColor:[NSColor mm_colorWithHexString:@"#1296DB"]]; - // privacyImage = [privacyImage resizeToSize:CGSizeMake(14, 14)]; - NSImage *privacyImage = [NSImage imageNamed:@"toolbar_privacy"]; - privacyImage = [NSImage ez_imageWithSymbolName:@"hand.raised.square" size:CGSizeMake(18, 16)]; + /** + SF image "hand.raised.square" require macOS 12.0 + Fix: https://github.com/tisfeng/Easydict/pull/212#discussion_r1437951644 + */ + if (@available(macOS 12.0, *)) { + privacyImage = [NSImage ez_imageWithSymbolName:@"hand.raised.square" size:CGSizeMake(18, 16)]; + } privacyImage = [privacyImage imageWithTintColor:[NSColor ez_imageTintBlueColor]]; return privacyImage;