Skip to content

Commit

Permalink
Tweak the selection color to be a bit less strident.
Browse files Browse the repository at this point in the history
  • Loading branch information
BJ Homer authored and BJ Homer committed Nov 30, 2010
1 parent c7e15d1 commit 3d3bb2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/HSSidebarView.m
Expand Up @@ -101,9 +101,9 @@ - (void) setupViewHierarchy {

self.selectionGradient = [CAGradientLayer layer];

UIColor *baseColor = [UIColor blueColor];
UIColor *topColor = [baseColor colorWithAlphaComponent:0.9];
UIColor *bottomColor = [baseColor colorWithAlphaComponent:0.6];
UIColor *baseColor = [UIColor colorWithHue:0.666 saturation:0.75 brightness:0.8 alpha:1];
UIColor *topColor = [baseColor colorWithAlphaComponent:1];
UIColor *bottomColor = [baseColor colorWithAlphaComponent:0.75];
selectionGradient.colors = [NSArray arrayWithObjects:(id)[topColor CGColor], (id)[bottomColor CGColor], nil];
selectionGradient.bounds = CGRectMake(0, 0, _scrollView.bounds.size.width, rowHeight);
selectionGradient.hidden = YES;
Expand All @@ -120,7 +120,7 @@ - (void) setupViewHierarchy {
}

- (void) setupInstanceVariables {
selectedIndex = 3;
selectedIndex = -1;
self.rowHeight = 80;
self.imageViews = [NSMutableArray array];
self.viewsForReuse = [NSMutableArray array];
Expand Down

0 comments on commit 3d3bb2d

Please sign in to comment.