* Source/NSImageCell.m (-drawInteriorWithFrame:inView:):

Draw image with 50% opacity if the cell is disabled


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34548 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2012-01-15 21:35:47 +00:00
parent 1b70ae827a
commit 7da6d417a7
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-01-15 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSImageCell.m (-drawInteriorWithFrame:inView:):
Draw image with 50% opacity if the cell is disabled
2012-01-15 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSTableColumn.m (-initWithIdentifier:): Make data

View file

@ -246,12 +246,14 @@ yBottomInRect(NSSize innerSize, NSRect outerRect, BOOL flipped)
rect = [controlView centerScanRect: rect];
}
CGFloat fraction = [self isEnabled] ? 1.0 : 0.5;
// draw!
[_cell_image drawInRect: rect
fromRect: NSMakeRect(0, 0, realImageSize.width,
realImageSize.height)
operation: NSCompositeSourceOver
fraction: 1.0
fraction: fraction
respectFlipped: YES
hints: nil];