mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:40:39 +00:00
Implemented setHighlighted: method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15772 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3446373469
commit
4571641386
1 changed files with 15 additions and 0 deletions
|
@ -199,4 +199,19 @@ static NSColor *clearCol = nil;
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setHighlighted: (BOOL) flag
|
||||
{
|
||||
_cell.is_highlighted = flag;
|
||||
|
||||
if (flag == YES)
|
||||
{
|
||||
[self setBackgroundColor: [NSColor controlColor]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setBackgroundColor: [NSColor controlShadowColor]];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue