2023-11-01 21:11:11 +00:00
|
|
|
// This file Copyright © Transmission authors and contributors.
|
2022-01-20 18:27:56 +00:00
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2011-10-22 20:45:20 +00:00
|
|
|
|
2022-06-29 00:15:52 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2011-10-22 20:45:20 +00:00
|
|
|
|
|
|
|
@interface NSImage (NSImageAdditions)
|
|
|
|
|
2022-06-08 21:35:51 +00:00
|
|
|
+ (NSImage*)discIconWithColor:(NSColor*)color insetFactor:(CGFloat)insetFactor;
|
2021-08-15 09:41:48 +00:00
|
|
|
- (NSImage*)imageWithColor:(NSColor*)color;
|
2011-10-22 20:45:20 +00:00
|
|
|
|
2022-04-24 20:34:30 +00:00
|
|
|
/* macOS < 11 compatibility */
|
2021-12-05 23:42:54 +00:00
|
|
|
+ (NSImage*)systemSymbol:(NSString*)symbolName withFallback:(NSString*)fallbackName;
|
2022-04-24 20:34:30 +00:00
|
|
|
+ (NSImage*)largeSystemSymbol:(NSString*)symbolName withFallback:(NSString*)fallbackName;
|
2021-12-05 23:42:54 +00:00
|
|
|
|
2011-10-22 20:45:20 +00:00
|
|
|
@end
|