Commits

Brandon Walkin  committed 04e0e96

Anchored pop up button - Fixed disabled appearance (now the arrow dims)

  • Participants
  • Parent commits 58f10ba

Comments (0)

Files changed (1)

File BWAnchoredPopUpButtonCell.m

 		[transform concat];
 		
 		[shadowImage drawAtPoint:shadowPoint fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1];
-		[glyphImage drawAtPoint:drawPoint fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1];
+		
+		if ([self isEnabled])
+			[glyphImage drawAtPoint:drawPoint fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1];
+		else
+			[glyphImage drawAtPoint:drawPoint fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:0.5];
 		
 		[transform invert];
 		[transform concat];