mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* Source/NSMenuItemCell.m: Correct menu highlighting issue
found by applying changes suggested by Jeff Teunissen. This change causes the menu to use the correct text color when highlighted. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23916 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5f0ece8834
commit
efcfc85f6b
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-10-19 21:17-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSMenuItemCell.m: Correct menu highlighting issue
|
||||
found by applying changes suggested by Jeff Teunissen. This
|
||||
change causes the menu to use the correct text color when
|
||||
highlighted.
|
||||
|
||||
2006-10-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/GSTheme.h:
|
||||
|
|
|
@ -89,6 +89,16 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
|
|||
return _cell.is_highlighted;
|
||||
}
|
||||
|
||||
- (NSColor *)textColor
|
||||
{
|
||||
if(_cell.is_highlighted && [self isEnabled])
|
||||
{
|
||||
return [NSColor selectedMenuItemTextColor];
|
||||
}
|
||||
|
||||
return [super textColor];
|
||||
}
|
||||
|
||||
- (void) setMenuItem: (NSMenuItem *)item
|
||||
{
|
||||
ASSIGN (_menuItem, item);
|
||||
|
|
Loading…
Reference in a new issue