diff --git a/ChangeLog b/ChangeLog index ee105717e..de3b9ed59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-10-03 Eric Wasylishen + + * Source/NSMenuItemCell.m: If the cell is highlighted, draw + the arrow using NSHighlightedMenuArrow (if available). + 2013-10-03 Eric Wasylishen * Source/GSThemeDrawing.m: Use new -[GSDrawTiles themeMargins] diff --git a/Source/NSMenuItemCell.m b/Source/NSMenuItemCell.m index 1686d9125..bd4692747 100644 --- a/Source/NSMenuItemCell.m +++ b/Source/NSMenuItemCell.m @@ -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];