Browse Source

Use dark grey background color instead of black in view controllers

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Tamas Timar 11 years ago
parent
commit
26372cd913

+ 3 - 0
AspenProject/VLCAboutViewController.m

@@ -31,6 +31,9 @@
     self.navigationItem.rightBarButtonItem = contributeButton;
     self.navigationItem.leftBarButtonItem = [UIBarButtonItem themedRevealMenuButtonWithTarget:self andSelector:@selector(goBack:)];
 
+    self.view.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+    self.webView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
+
     NSMutableString *htmlContent = [NSMutableString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"html"] encoding:NSUTF8StringEncoding error:nil];
     [htmlContent replaceOccurrencesOfString:@"ASPENVERSION" withString:[[NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]] stringByAppendingFormat:@"<br /><i>%@</i>", kVLCVersionCodename] options:NSLiteralSearch range:NSMakeRange(0, 1000)];
     [htmlContent replaceOccurrencesOfString:@"MOBILEVLCKITVERSION" withString:[NSString stringWithFormat:NSLocalizedString(@"BASED_ON_FORMAT",@""),[[VLCLibrary sharedLibrary] version]] options:NSLiteralSearch range:NSMakeRange(0, 1000)];

+ 1 - 0
AspenProject/VLCDropboxTableViewController.m

@@ -70,6 +70,7 @@
     _downloadingBarLabel = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DOWNLOADING",@"") style:UIBarButtonItemStylePlain target:nil action:nil];
     [_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
 
+    _loginToDropboxView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
     [_loginToDropboxButton setTitle:NSLocalizedString(@"DROPBOX_LOGIN", @"") forState:UIControlStateNormal];
 
     [self.navigationController.toolbar setBackgroundImage:[UIImage imageNamed:@"sudHeaderBg"] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];

+ 1 - 0
AspenProject/VLCGoogleDriveTableViewController.m

@@ -69,6 +69,7 @@
     _downloadingBarLabel = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DOWNLOADING",@"") style:UIBarButtonItemStylePlain target:nil action:nil];
     [_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
 
+    _loginToGoogleDriveView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
     [_loginToGoogleDriveButton setTitle:NSLocalizedString(@"DROPBOX_LOGIN", @"") forState:UIControlStateNormal];
 
     [self.navigationController.toolbar setBackgroundImage:[UIImage imageNamed:@"sudHeaderBg"] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];

+ 2 - 2
Resources/About Contents.html

@@ -1,7 +1,7 @@
 <html>
 <head>
 </head>
-<body bgcolor=#000000>
+<body style="background-color: #1f1f1f">
 <style type="text/css">
     h3 {color: #aaaaaa}
     h5 {text-decoration: plain; color: #aaaaaa}
@@ -9,7 +9,7 @@
     A:visited {text-decoration: none; color: #aaaaaa}
     A:active {text-decoration: none; color: #aaaaaa}
 </style>
-<div style="text-align:left; background-color:#000000; border:solid black 1px; padding:0.5em 1em 0.5em 1em; overflow:auto; font-size:10pt; font-family:Helvetica; color:#aaaaaa"; A:link {text-decoration: underline; color:#aaaaaa}>
+<div style="text-align:left; border:solid transparent 1px; padding:0.5em 1em 0.5em 1em; overflow:auto; font-size:10pt; font-family:Helvetica; color:#aaaaaa"; A:link {text-decoration: underline; color:#aaaaaa}>
 <p align="center">
 <table cellspacing=0 cellpadding=0>
 <tr>