[macOS] Update Info window.

Use SF Symbols on macOS 11+

Use NSSegmentedControl instead of custom view.

Add NSImage extension to fallback loading from
assets on macOS 10.15 and older.

Also should fix sizing issues when changing pane from Options
to Files.

Fixes #2247
This commit is contained in:
Dzmitry Neviadomski
2021-12-06 02:42:54 +03:00
parent 4e3fd52b3d
commit c38ee22f7f
24 changed files with 651 additions and 1031 deletions

View File

@@ -40,4 +40,14 @@
return coloredImage;
}
+ (NSImage*)systemSymbol:(NSString*)symbolName withFallback:(NSString*)fallbackName
{
if (@available(macOS 11.0, *))
{
return [NSImage imageWithSystemSymbolName:symbolName accessibilityDescription:nil];
}
return [NSImage imageNamed:fallbackName];
}
@end