Skip to content
Browse files

Tweak the selection color to be a bit less strident.

  • Loading branch information...
1 parent c7e15d1 commit 3d3bb2d32e89d0ffb222df9edaa2644315c1e1ac BJ Homer committed Nov 30, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 Classes/HSSidebarView.m
View
8 Classes/HSSidebarView.m
@@ -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;
@@ -120,7 +120,7 @@ - (void) setupViewHierarchy {
}
- (void) setupInstanceVariables {
- selectedIndex = 3;
+ selectedIndex = -1;
self.rowHeight = 80;
self.imageViews = [NSMutableArray array];
self.viewsForReuse = [NSMutableArray array];

0 comments on commit 3d3bb2d

Please sign in to comment.
Something went wrong with that request. Please try again.