Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed compositing operation to show icons #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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