0002-Use-the-VLC-color-scheme.patch 2.5 KB

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