Commits

Anonymous committed adbdabd

Textured slider - Added disabled appearance

  • Participants
  • Parent commits 145ecb8

Comments (0)

Files changed (1)

File BWTexturedSliderCell.m

 	slideRect.size.width -= 9;
 	slideRect.origin.x += 5;
 
-	NSDrawThreePartImage(slideRect, trackLeftImage, trackFillImage, trackRightImage, NO, NSCompositeSourceOver, 1, flipped);
+	if ([self isEnabled])
+		NSDrawThreePartImage(slideRect, trackLeftImage, trackFillImage, trackRightImage, NO, NSCompositeSourceOver, 1, flipped);
+	else
+		NSDrawThreePartImage(slideRect, trackLeftImage, trackFillImage, trackRightImage, NO, NSCompositeSourceOver, 0.5, flipped);
 }
 
 - (void)drawKnob:(NSRect)rect