Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions AMPrefs/AMPrefPaneIconView.m
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ - (void)drawBackgroundForCategoryWithIndex:(int)index
{
NSRect frame = [self frameForCategoryWithIndex:index];
if ((index % 2) == 1) {
[[NSColor colorWithCalibratedWhite:0.97 alpha:0.99] set];
NSRectFillUsingOperation(frame, NSCompositePlusDarker);
[[NSColor colorWithCalibratedWhite:0.97 alpha:1] set];
NSRectFill(frame);
}
if (sortByCategory) {
NSPoint captionOffset = NSMakePoint(AMPrefPaneIconViewHorizontalPadding, frame.origin.y +AMPrefPaneIconViewTopGroupPadding);
Expand Down Expand Up @@ -438,8 +438,8 @@ - (void)drawIcon:(AMPrefPaneIcon *)icon atPosition:(NSPoint)pos highlighted:(BOO
} else {
theImage = [icon image];
}
[theImage setFlipped:NO];
[theImage drawInRect:iconRect fromRect:sourceRect operation:NSCompositeSourceAtop fraction:1.0];
[theImage setFlipped:YES];
[theImage drawInRect:iconRect fromRect:sourceRect operation:NSCompositingOperationSourceOver fraction:1.0];
NSRect labelRect = NSZeroRect;
labelRect.size = [[icon title] sizeWithAttributes:_am_iconLabelAttributes];
labelRect.origin.x = pos.x-labelRect.size.width/2.0;
Expand Down