mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 03:40:47 +00:00
* 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:
parent
fb723f8241
commit
467edcbeef
2 changed files with 16 additions and 1 deletions
|
@ -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>
|
2013-10-03 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/GSThemeDrawing.m: Use new -[GSDrawTiles themeMargins]
|
* Source/GSThemeDrawing.m: Use new -[GSDrawTiles themeMargins]
|
||||||
|
|
|
@ -726,7 +726,17 @@ static NSString *commandKeyString = @"#";
|
||||||
- (void) drawKeyEquivalentWithFrame: (NSRect)cellFrame
|
- (void) drawKeyEquivalentWithFrame: (NSRect)cellFrame
|
||||||
inView: (NSView *)controlView
|
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];
|
cellFrame = [self keyEquivalentRectForBounds: cellFrame];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue