|
@@ -0,0 +1,46 @@
|
|
|
+From 80c80c32b61f33fc8bfd6a1145e771ef0df576f2 Mon Sep 17 00:00:00 2001
|
|
|
+From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
|
|
|
+Date: Sat, 17 Aug 2013 20:35:48 +0200
|
|
|
+Subject: [PATCH 2/2] Use the VLC color scheme
|
|
|
+
|
|
|
+---
|
|
|
+ Demo/GHMenuCell.m | 11 ++++-------
|
|
|
+ 1 file changed, 4 insertions(+), 7 deletions(-)
|
|
|
+
|
|
|
+diff --git a/Demo/GHMenuCell.m b/Demo/GHMenuCell.m
|
|
|
+index 1a5d20e..b6edf09 100644
|
|
|
+--- a/Demo/GHMenuCell.m
|
|
|
++++ b/Demo/GHMenuCell.m
|
|
|
+@@ -21,9 +21,10 @@ NSString const *kSidebarCellImageKey = @"CellImage";
|
|
|
+ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
|
|
|
+ if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
|
|
|
+ self.clipsToBounds = YES;
|
|
|
++ self.backgroundColor = [UIColor colorWithRed:(43.0f/255.0f) green:(43.0f/255.0f) blue:(43.0f/255.0f) alpha:1.0f];
|
|
|
+
|
|
|
+ UIView *bgView = [[UIView alloc] init];
|
|
|
+- bgView.backgroundColor = [UIColor colorWithRed:(38.0f/255.0f) green:(44.0f/255.0f) blue:(58.0f/255.0f) alpha:1.0f];
|
|
|
++ bgView.backgroundColor = [UIColor colorWithRed:(65.0f/255.0f) green:(65.0f/255.0f) blue:(65.0f/255.0f) alpha:1.0f];
|
|
|
+ self.selectedBackgroundView = bgView;
|
|
|
+
|
|
|
+ self.imageView.contentMode = UIViewContentModeCenter;
|
|
|
+@@ -37,15 +38,11 @@ NSString const *kSidebarCellImageKey = @"CellImage";
|
|
|
+ self.textLabel.textColor = [UIColor colorWithRed:(196.0f/255.0f) green:(204.0f/255.0f) blue:(218.0f/255.0f) alpha:1.0f];
|
|
|
+
|
|
|
+ UIView *topLine = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, [UIScreen mainScreen].bounds.size.height, 1.0f)];
|
|
|
+- topLine.backgroundColor = [UIColor colorWithRed:(54.0f/255.0f) green:(61.0f/255.0f) blue:(76.0f/255.0f) alpha:1.0f];
|
|
|
++ topLine.backgroundColor = [UIColor colorWithRed:(16.0f/255.0f) green:(16.0f/255.0f) blue:(16.0f/255.0f) alpha:1.0f];
|
|
|
+ [self.textLabel.superview addSubview:topLine];
|
|
|
+
|
|
|
+- UIView *topLine2 = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 1.0f, [UIScreen mainScreen].bounds.size.height, 1.0f)];
|
|
|
+- topLine2.backgroundColor = [UIColor colorWithRed:(54.0f/255.0f) green:(61.0f/255.0f) blue:(77.0f/255.0f) alpha:1.0f];
|
|
|
+- [self.textLabel.superview addSubview:topLine2];
|
|
|
+-
|
|
|
+ UIView *bottomLine = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 50.0f, [UIScreen mainScreen].bounds.size.height, 1.0f)];
|
|
|
+- bottomLine.backgroundColor = [UIColor colorWithRed:(40.0f/255.0f) green:(47.0f/255.0f) blue:(61.0f/255.0f) alpha:1.0f];
|
|
|
++ bottomLine.backgroundColor = [UIColor colorWithRed:(23.0f/255.0f) green:(23.0f/255.0f) blue:(23.0f/255.0f) alpha:1.0f];
|
|
|
+ [self.textLabel.superview addSubview:bottomLine];
|
|
|
+ }
|
|
|
+ return self;
|
|
|
+--
|
|
|
+1.8.3.1 (Apple Git-46)
|
|
|
+
|