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

@ -2,7 +2,7 @@
<abstract>Useful/configurable drawing functions</abstract>
Copyright (C) 2004-2006 Free Software Foundation, Inc.
Copyright (C) 2004-2023 Free Software Foundation, Inc.
Author: Adam Fedor <fedor@gnu.org>
Author: Richard Frith-Macdonald <rfm@gnu.org>
@ -17,7 +17,7 @@
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUstep
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
@ -1328,6 +1328,12 @@ APPKIT_EXPORT_CLASS
boxType: (NSBoxType)boxType
borderType: (NSBorderType)borderType
inView: (NSBox *)box;
/* NSDockTile */
- (NSColor *) badgeBackgroundColor;
- (NSColor *) badgeDecorationColor;
- (NSColor *) badgeTextColor;
@end
/**