Removed gradient drawing.
:(
This commit is contained in:
@@ -26,14 +26,10 @@
|
||||
// need more, overridable methods) we can achieve whatever look we want.
|
||||
self.backgroundColor = [NSColor colorWithCalibratedWhite:0.97 alpha:1.0f];
|
||||
self.highlightColor = [NSColor colorWithCalibratedWhite:0.87 alpha:1.0f];
|
||||
self.selectionColor = [NSColor colorWithCalibratedWhite:0.77 alpha:1.0f];
|
||||
self.alternateBackgroundColor = [NSColor colorWithCalibratedWhite:0.92 alpha:1.0f];
|
||||
self.alternateHighlightColor = [NSColor colorWithCalibratedWhite:0.82 alpha:1.0f];
|
||||
|
||||
// By replacing the drawSelectedBackground block, when our state is
|
||||
// changed to selected, we draw an bottom-up gradient from the
|
||||
// highlight color to the background color with the selection style.
|
||||
self.drawSelectedBackground = gradientBackgroundWithAngledPattern(TUITableViewCellGradientPatternBackgroundToHighlight,
|
||||
TUITableViewCellStateSelected, 90.0f);
|
||||
self.alternateSelectionColor = [NSColor colorWithCalibratedWhite:0.72 alpha:1.0f];
|
||||
|
||||
// Instead of using a TUILabel or TUITextField, let's take a little
|
||||
// course in the art of using a TUITextRenderer. It acts as a simple
|
||||
|
||||
Reference in New Issue
Block a user