浏览代码

GHSideBarNav: patch cell to suit the VLC color scheme

Felix Paul Kühne 12 年之前
父节点
当前提交
018c16ce71
共有 1 个文件被更改,包括 46 次插入0 次删除
  1. 46 0
      patches/ghsidebarnav/0002-Use-the-VLC-color-scheme.patch

+ 46 - 0
patches/ghsidebarnav/0002-Use-the-VLC-color-scheme.patch

@@ -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)
+