mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:40:47 +00:00
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:
parent
a34867faee
commit
f2b79365f4
6 changed files with 196 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue