Browse Source

Collect all colors created in code at a central place

Felix Paul Kühne 11 years ago
parent
commit
6ac2077732

+ 17 - 0
Sources/UIColor+Presets.h

@@ -0,0 +1,17 @@
+//
+//  UIColor+Presets.h
+//  VLC for iOS
+//
+//  Created by Felix Paul Kühne on 23.06.14.
+//  Copyright (c) 2014 VideoLAN. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface UIColor (Presets)
+
++ (UIColor *)VLCDarkBackgroundColor;
++ (UIColor *)VLCLightTextColor;
++ (UIColor *)VLCDarkTextShadowColor;
+
+@end

+ 28 - 0
Sources/UIColor+Presets.m

@@ -0,0 +1,28 @@
+//
+//  UIColor+Presets.m
+//  VLC for iOS
+//
+//  Created by Felix Paul Kühne on 23.06.14.
+//  Copyright (c) 2014 VideoLAN. All rights reserved.
+//
+
+#import "UIColor+Presets.h"
+
+@implementation UIColor (Presets)
+
++ (UIColor *)VLCDarkBackgroundColor
+{
+    return [UIColor colorWithWhite:.122 alpha:1.];
+}
+
++ (UIColor *)VLCLightTextColor
+{
+    return [UIColor colorWithWhite:.72 alpha:1.];
+}
+
++ (UIColor *)VLCDarkTextShadowColor
+{
+    return [UIColor colorWithWhite:0. alpha:.25f];
+}
+
+@end

+ 2 - 1
Sources/VLC for iOS-Prefix.pch

@@ -2,7 +2,7 @@
  * Prefix header for all source files of the 'vlc-ios' target
  * VLC for iOS
  *****************************************************************************
- * Copyright (c) 2013 VideoLAN. All rights reserved.
+ * Copyright (c) 2013-2014 VideoLAN. All rights reserved.
  * $Id$
  *
  * Authors: Felix Paul Kühne <fkuehne # videolan.org>
@@ -25,6 +25,7 @@
 #import <MediaLibraryKit/MediaLibraryKit.h>
 
 #import "VLCConstants.h"
+#import "UIColor+Presets.h"
 
 #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
 

+ 1 - 1
Sources/VLCAboutViewController.m

@@ -30,7 +30,7 @@
     _webView = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
     _webView.clipsToBounds = YES;
     _webView.delegate = self;
-    _webView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    _webView.backgroundColor = [UIColor VLCDarkBackgroundColor];
     self.view = _webView;
 }
 

+ 1 - 1
Sources/VLCAppDelegate.m

@@ -90,7 +90,7 @@
 
     self.window.rootViewController = self.revealController;
     // necessary to avoid navbar blinking in VLCOpenNetworkStreamViewController & VLCDownloadViewController
-    _revealController.contentViewController.view.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    _revealController.contentViewController.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
     [self.window makeKeyAndVisible];
 
     VLCMediaFileDiscoverer *discoverer = [VLCMediaFileDiscoverer sharedInstance];

+ 2 - 2
Sources/VLCDownloadViewController.m

@@ -347,7 +347,7 @@
     if (cell == nil) {
         cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
         cell.textLabel.textColor = [UIColor whiteColor];
-        cell.detailTextLabel.textColor = [UIColor colorWithWhite:.72 alpha:1.];
+        cell.detailTextLabel.textColor = [UIColor VLCLightTextColor];
     }
 
     NSInteger row = indexPath.row;
@@ -365,7 +365,7 @@
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
 }
 
 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath

+ 3 - 3
Sources/VLCDropboxTableViewController.m

@@ -65,8 +65,8 @@
     self.navigationItem.leftBarButtonItem = _backToMenuButton;
 
     self.tableView.rowHeight = [VLCCloudStorageTableViewCell heightOfCell];
-    self.tableView.separatorColor = [UIColor colorWithWhite:.122 alpha:1.];
-    self.view.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    self.tableView.separatorColor = [UIColor VLCDarkBackgroundColor];
+    self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
     _numberOfFilesBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@"NUM_OF_FILES", @""), 0] style:UIBarButtonItemStylePlain target:nil action:nil];
     [_numberOfFilesBarButtonItem setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
@@ -199,7 +199,7 @@
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
 }
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

+ 3 - 3
Sources/VLCGoogleDriveTableViewController.m

@@ -61,8 +61,8 @@
     self.navigationItem.leftBarButtonItem = _backToMenuButton;
 
     self.tableView.rowHeight = [VLCCloudStorageTableViewCell heightOfCell];
-    self.tableView.separatorColor = [UIColor colorWithWhite:.122 alpha:1.];
-    self.view.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    self.tableView.separatorColor = [UIColor VLCDarkBackgroundColor];
+    self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
     _numberOfFilesBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@"NUM_OF_FILES", @""), 0] style:UIBarButtonItemStylePlain target:nil action:nil];
     [_numberOfFilesBarButtonItem setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
@@ -214,7 +214,7 @@
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
 }
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

+ 4 - 4
Sources/VLCLocalPlexFolderListViewController.m

@@ -45,7 +45,7 @@
 - (void)loadView
 {
     _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
-    _tableView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
     _tableView.delegate = self;
     _tableView.dataSource = self;
     _tableView.rowHeight = [VLCLocalNetworkListCell heightOfCell];
@@ -77,8 +77,8 @@
     [_mutableObjectList removeAllObjects];
     _mutableObjectList = [_PlexParser PlexMediaServerParser:_PlexServerAddress port:_PlexServerPort navigationPath:_PlexServerPath];
 
-    self.tableView.separatorColor = [UIColor colorWithWhite:.122 alpha:1.];
-    self.view.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    self.tableView.separatorColor = [UIColor VLCDarkBackgroundColor];
+    self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
     NSString *titleValue;
     if ([_PlexServerPath isEqualToString:@""])
@@ -203,7 +203,7 @@
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(VLCLocalNetworkListCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    UIColor *color = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    UIColor *color = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
     cell.contentView.backgroundColor = cell.titleLabel.backgroundColor = cell.folderTitleLabel.backgroundColor = cell.subtitleLabel.backgroundColor =  color;
 }
 

+ 4 - 4
Sources/VLCLocalServerFolderListViewController.m

@@ -62,7 +62,7 @@
 - (void)loadView
 {
     _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
-    _tableView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
     _tableView.delegate = self;
     _tableView.dataSource = self;
     _tableView.rowHeight = [VLCLocalNetworkListCell heightOfCell];
@@ -123,8 +123,8 @@
         [self _listFTPDirectory];
     }
 
-    self.tableView.separatorColor = [UIColor colorWithWhite:.122 alpha:1.];
-    self.view.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    self.tableView.separatorColor = [UIColor VLCDarkBackgroundColor];
+    self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
     self.title = _listTitle;
 
@@ -255,7 +255,7 @@
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(VLCLocalNetworkListCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    UIColor *color = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    UIColor *color = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
     cell.contentView.backgroundColor = cell.titleLabel.backgroundColor = cell.folderTitleLabel.backgroundColor = cell.subtitleLabel.backgroundColor =  color;
 
     if (_serverType == kVLCServerTypeFTP)

+ 6 - 6
Sources/VLCLocalServerListViewController.m

@@ -69,7 +69,7 @@
 - (void)loadView
 {
     _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
-    _tableView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
     _tableView.delegate = self;
     _tableView.dataSource = self;
     self.view = _tableView;
@@ -93,8 +93,8 @@
     self.navigationItem.leftBarButtonItem = _backToMenuButton;
 
     self.tableView.rowHeight = [VLCLocalNetworkListCell heightOfCell];
-    self.tableView.separatorColor = [UIColor colorWithWhite:.122 alpha:1.];
-    self.view.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    self.tableView.separatorColor = [UIColor VLCDarkBackgroundColor];
+    self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
     self.title = NSLocalizedString(@"LOCAL_NETWORK", @"");
 
@@ -245,7 +245,7 @@
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(VLCLocalNetworkListCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    UIColor *color = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    UIColor *color = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
     cell.contentView.backgroundColor = cell.titleLabel.backgroundColor = cell.folderTitleLabel.backgroundColor = cell.subtitleLabel.backgroundColor = color;
 }
 
@@ -401,13 +401,13 @@
                           ];
             [headerView.layer insertSublayer:gradient atIndex:0];
         } else
-            headerView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+            headerView.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
         UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectInset(headerView.bounds, 12.0f, 5.0f)];
         textLabel.text = (NSString *) headerText;
         textLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:([UIFont systemFontSize] * 0.8f)];
         textLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
-        textLabel.shadowColor = [UIColor colorWithWhite:0.0f alpha:0.25f];
+        textLabel.shadowColor = [UIColor VLCDarkTextShadowColor];
         textLabel.textColor = [UIColor colorWithRed:(118.0f/255.0f) green:(118.0f/255.0f) blue:(118.0f/255.0f) alpha:1.0f];
         textLabel.backgroundColor = [UIColor clearColor];
         [headerView addSubview:textLabel];

+ 2 - 2
Sources/VLCMenuTableViewController.m

@@ -250,13 +250,13 @@
                           ];
             [headerView.layer insertSublayer:gradient atIndex:0];
         } else
-            headerView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+            headerView.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
         UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectInset(headerView.bounds, 12.0f, 5.0f)];
         textLabel.text = (NSString *) headerText;
         textLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:([UIFont systemFontSize] * 0.8f)];
         textLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
-        textLabel.shadowColor = [UIColor colorWithWhite:0.0f alpha:0.25f];
+        textLabel.shadowColor = [UIColor VLCDarkTextShadowColor];
         textLabel.textColor = [UIColor colorWithRed:(118.0f/255.0f) green:(118.0f/255.0f) blue:(118.0f/255.0f) alpha:1.0f];
         textLabel.backgroundColor = [UIColor clearColor];
         [headerView addSubview:textLabel];

+ 3 - 3
Sources/VLCNetworkLoginViewController.m

@@ -65,7 +65,7 @@
     self.passwordField.clearButtonMode = UITextFieldViewModeWhileEditing;
 
     if (SYSTEM_RUNS_IOS7_OR_LATER) {
-        UIColor *color = [UIColor colorWithWhite:0.47 alpha:1.0];
+        UIColor *color = [UIColor VLCLightTextColor];
         self.serverAddressField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"ftp://yourserver.local" attributes:@{NSForegroundColorAttributeName: color}];
         self.usernameField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:NSLocalizedString(@"USER_LABEL", @"") attributes:@{NSForegroundColorAttributeName: color}];
         self.passwordField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:NSLocalizedString(@"PASSWORD_LABEL", @"") attributes:@{NSForegroundColorAttributeName: color}];
@@ -190,7 +190,7 @@
     if (cell == nil) {
         cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
         cell.textLabel.textColor = [UIColor whiteColor];
-        cell.detailTextLabel.textColor = [UIColor colorWithWhite:.72 alpha:1.];
+        cell.detailTextLabel.textColor = [UIColor VLCLightTextColor];
     }
 
     NSInteger row = indexPath.row;
@@ -204,7 +204,7 @@
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
 }
 
 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath

+ 2 - 2
Sources/VLCOpenNetworkStreamViewController.m

@@ -144,7 +144,7 @@
     if (cell == nil) {
         cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
         cell.textLabel.textColor = [UIColor whiteColor];
-        cell.detailTextLabel.textColor = [UIColor colorWithWhite:.72 alpha:1.];
+        cell.detailTextLabel.textColor = [UIColor VLCLightTextColor];
     }
 
     NSInteger row = indexPath.row;
@@ -158,7 +158,7 @@
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
 }
 
 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath

+ 6 - 6
Sources/VLCPlaylistViewController.m

@@ -85,9 +85,9 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
 
     if (_usingTableViewToShowData) {
         _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
-        _tableView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+        _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
         _tableView.rowHeight = [VLCPlaylistTableViewCell heightOfCell];
-        _tableView.separatorColor = [UIColor colorWithWhite:.122 alpha:1.];
+        _tableView.separatorColor = [UIColor VLCDarkBackgroundColor];
         _tableView.delegate = self;
         _tableView.dataSource = self;
         _tableView.opaque = YES;
@@ -100,7 +100,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
         _collectionView.delegate = self;
         _collectionView.dataSource = self;
         _collectionView.opaque = YES;
-        _collectionView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+        _collectionView.backgroundColor = [UIColor VLCDarkBackgroundColor];
         self.view = _collectionView;
         _longPressGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(_collectionViewHandleLongPressGesture:)];
         [_collectionView addGestureRecognizer:_longPressGestureRecognizer];
@@ -108,7 +108,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
             [_collectionView registerNib:[UINib nibWithNibName:@"VLCFuturePlaylistCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"PlaylistCell"];
         else
             [_collectionView registerNib:[UINib nibWithNibName:@"VLCPlaylistCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"PlaylistCell"];
-        self.view.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+        self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
     }
 
     _libraryMode = VLCLibraryModeAllFiles;
@@ -528,7 +528,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
 
 - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor colorWithWhite:.122 alpha:1.];
+    cell.backgroundColor = (indexPath.row % 2 == 0)? [UIColor blackColor]: [UIColor VLCDarkBackgroundColor];
     cell.multipleSelectionBackgroundView.backgroundColor = cell.backgroundColor;
 }
 
@@ -978,7 +978,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
                                      barMetrics:UIBarMetricsDefault];
         [editButton setBackgroundImage:[UIImage imageNamed:editImageHighlight]
                                        forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];
-        [editButton setTitleTextAttributes: editing ? @{UITextAttributeTextShadowColor : [UIColor whiteColor], UITextAttributeTextColor : [UIColor blackColor]} : @{UITextAttributeTextShadowColor : [UIColor colorWithWhite:0. alpha:.37], UITextAttributeTextColor : [UIColor whiteColor]} forState:UIControlStateNormal];
+        [editButton setTitleTextAttributes: editing ? @{UITextAttributeTextShadowColor : [UIColor whiteColor], UITextAttributeTextColor : [UIColor blackColor]} : @{UITextAttributeTextShadowColor : [UIColor VLCDarkTextShadowColor], UITextAttributeTextColor : [UIColor whiteColor]} forState:UIControlStateNormal];
     }
 
     if (!_usingTableViewToShowData) {

+ 1 - 1
Sources/VLCSidebarViewCell.m

@@ -30,7 +30,7 @@
 
         self.textLabel.font = [UIFont fontWithName:@"Helvetica" size:([UIFont systemFontSize] * 1.2f)];
         self.textLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
-        self.textLabel.shadowColor = [UIColor colorWithWhite:0.0f alpha:0.25f];
+        self.textLabel.shadowColor = [UIColor VLCDarkTextShadowColor];
         self.textLabel.textColor = [UIColor whiteColor];
         self.textLabel.adjustsFontSizeToFitWidth = YES;
         if ([self.textLabel respondsToSelector:@selector(setAdjustsLetterSpacingToFitWidth:)])

+ 1 - 1
Sources/VLCStatusLabel.m

@@ -72,7 +72,7 @@
     self.backgroundColor = [UIColor clearColor];
     CGContextClearRect(UIGraphicsGetCurrentContext(), rect);
 
-    UIColor *drawingColor = [UIColor colorWithWhite:.20 alpha:.7];
+    UIColor *drawingColor = [UIColor VLCDarkBackgroundColor];
     [drawingColor setFill];
 
     UIBezierPath* bezierPath = [UIBezierPath bezierPathWithRoundedRect:rect cornerRadius:rect.size.height / 2];

+ 2 - 2
Sources/VLCWiFiUploadTableViewCell.m

@@ -28,7 +28,7 @@
 {
     self.titleLabel.text = NSLocalizedString(@"WEBINTF_TITLE", @"");
     self.titleLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
-    self.titleLabel.shadowColor = [UIColor colorWithWhite:0.0f alpha:0.25f];
+    self.titleLabel.shadowColor = [UIColor VLCDarkTextShadowColor];
     self.titleLabel.textColor = [UIColor whiteColor];
 
     self.clipsToBounds = YES;
@@ -36,7 +36,7 @@
     self.titleLabel.superview.backgroundColor = [UIColor colorWithRed:(43.0f/255.0f) green:(43.0f/255.0f) blue:(43.0f/255.0f) alpha:1.0f];
 
     self.uploadAddressLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
-    self.uploadAddressLabel.shadowColor = [UIColor colorWithWhite:0.0f alpha:0.25f];
+    self.uploadAddressLabel.shadowColor = [UIColor VLCDarkTextShadowColor];
     self.uploadAddressLabel.textColor = [UIColor whiteColor];
 
     UIView *topLine = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, [UIScreen mainScreen].bounds.size.height, 1.0f)];

+ 6 - 0
VLC for iOS.xcodeproj/project.pbxproj

@@ -369,6 +369,7 @@
 		7DF1166D176CC69A009EC05C /* volumeballslider@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7DF1166B176CC69A009EC05C /* volumeballslider@2x.png */; };
 		7DF7CA0717650C2A00C61739 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DF7CA0617650C2A00C61739 /* AVFoundation.framework */; };
 		7DF7E791175F47DC0018858D /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DF7E790175F47DC0018858D /* MediaPlayer.framework */; };
+		7DF9352F1958AB0600E60FD4 /* UIColor+Presets.m in Sources */ = {isa = PBXBuildFile; fileRef = 7DF9352E1958AB0600E60FD4 /* UIColor+Presets.m */; };
 		9B088308183D7BEC004B5C2A /* VLCCloudStorageTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B088307183D7BEC004B5C2A /* VLCCloudStorageTableViewController.m */; };
 		9B1A164E185E0821001A99D9 /* backIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = 9B1A164C185E0821001A99D9 /* backIcon.png */; };
 		9B1A164F185E0821001A99D9 /* backIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9B1A164D185E0821001A99D9 /* backIcon@2x.png */; };
@@ -1038,6 +1039,8 @@
 		7DF1166B176CC69A009EC05C /* volumeballslider@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "volumeballslider@2x.png"; sourceTree = "<group>"; };
 		7DF7CA0617650C2A00C61739 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
 		7DF7E790175F47DC0018858D /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
+		7DF9352D1958AB0600E60FD4 /* UIColor+Presets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIColor+Presets.h"; path = "Sources/UIColor+Presets.h"; sourceTree = SOURCE_ROOT; };
+		7DF9352E1958AB0600E60FD4 /* UIColor+Presets.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIColor+Presets.m"; path = "Sources/UIColor+Presets.m"; sourceTree = SOURCE_ROOT; };
 		9B088306183D7BEC004B5C2A /* VLCCloudStorageTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VLCCloudStorageTableViewController.h; path = Sources/VLCCloudStorageTableViewController.h; sourceTree = SOURCE_ROOT; };
 		9B088307183D7BEC004B5C2A /* VLCCloudStorageTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VLCCloudStorageTableViewController.m; path = Sources/VLCCloudStorageTableViewController.m; sourceTree = SOURCE_ROOT; };
 		9B1A164C185E0821001A99D9 /* backIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = backIcon.png; sourceTree = "<group>"; };
@@ -2232,6 +2235,8 @@
 				7D3784C7183A9972009EE944 /* UIDevice+SpeedCategory.m */,
 				7D168F7218D4A317003FAF59 /* UIImage+Blur.h */,
 				7D168F7318D4A33F003FAF59 /* UIImage+Blur.m */,
+				7DF9352D1958AB0600E60FD4 /* UIColor+Presets.h */,
+				7DF9352E1958AB0600E60FD4 /* UIColor+Presets.m */,
 			);
 			name = Extensions;
 			sourceTree = "<group>";
@@ -2694,6 +2699,7 @@
 				7D3784AE183A9906009EE944 /* VLCDropboxTableViewController.m in Sources */,
 				7D3784BE183A9938009EE944 /* UIBarButtonItem+Theme.m in Sources */,
 				7D3784BF183A9938009EE944 /* UINavigationController+Theme.m in Sources */,
+				7DF9352F1958AB0600E60FD4 /* UIColor+Presets.m in Sources */,
 				7D50903218F41C7900180139 /* VLCAlertView.m in Sources */,
 				7DBBF182183AB3B80009A339 /* VLCAppDelegate.m in Sources */,
 				7D3784C0183A9938009EE944 /* VLCLinearProgressIndicator.m in Sources */,