NSDockTile - Implement methods to update the icon and show badge (#185)

NSDockTile - Implement methods to update the icon and show badge using a NSCustomImageRep. Link the NSDockTile view with the AppIcon window contentView.
GSTheme - add badgeColor color and corresponding methods to theme background, decoration and text color
This commit is contained in:
Gregory Casamento 2023-07-27 03:17:18 -04:00 committed by GitHub
parent a34867faee
commit f2b79365f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 196 additions and 15 deletions

View file

@ -36,6 +36,7 @@ extern "C" {
#endif
@class NSView, NSString;
@class NSImageRep;
APPKIT_EXPORT_CLASS
@interface NSDockTile : NSObject
@ -45,6 +46,9 @@ APPKIT_EXPORT_CLASS
id _owner;
BOOL _showsApplicationBadge;
NSString *_badgeLabel;
NSImage *_appIconImage;
NSImageRep *_imageRep;
NSImage *_dockTileImage;
}
- (NSView *) contentView;