From 2fa3deb460e53efd7b18a76b89af755651028dac Mon Sep 17 00:00:00 2001 From: Nerwosolek <24649931+Nerwosolek@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:15:59 +0200 Subject: [PATCH] Changed compositing operation to show icons --- AMPrefs/AMPrefPaneIconView.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AMPrefs/AMPrefPaneIconView.m b/AMPrefs/AMPrefPaneIconView.m index 10465059..a23732c8 100644 --- a/AMPrefs/AMPrefPaneIconView.m +++ b/AMPrefs/AMPrefPaneIconView.m @@ -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); @@ -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;