+ NSImage *icon;
+ NSColor *background;
+
+ if ( mouseIsPressed ) {
+ icon = altImage;
+ background = _NSGetThemePartColorPattern(44, 2, 0);
+ } else {
+ icon = image;
+ background = [NSColor clearColor];
+ }
+ [background set];
+ NSRectFill(rect);
+ [icon compositeToPoint:NSMakePoint(((rect.size.width - [icon size].width) / 2), 0)
+ operation:NSCompositeSourceOver];