* Source/NSMenuItemCell.m: If the cell is highlighted, draw

the arrow using NSHighlightedMenuArrow (if available).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37192 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2013-10-04 00:50:45 +00:00
parent fb723f8241
commit 467edcbeef
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-10-03 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSMenuItemCell.m: If the cell is highlighted, draw
the arrow using NSHighlightedMenuArrow (if available).
2013-10-03 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSThemeDrawing.m: Use new -[GSDrawTiles themeMargins]

View file

@ -726,7 +726,17 @@ static NSString *commandKeyString = @"#";
- (void) drawKeyEquivalentWithFrame: (NSRect)cellFrame
inView: (NSView *)controlView
{
NSImage *arrow = [NSImage imageNamed: @"NSMenuArrow"];
NSImage *arrow = nil;
if (_cell.is_highlighted)
{
arrow = [NSImage imageNamed: @"NSHighlightedMenuArrow"];
}
if (arrow == nil)
{
arrow = [NSImage imageNamed: @"NSMenuArrow"];
}
cellFrame = [self keyEquivalentRectForBounds: cellFrame];