From 26372cd9130e125e253356775076649ea44bbc65 Mon Sep 17 00:00:00 2001 From: Tamas Timar Date: Sun, 3 Nov 2013 19:28:35 +0100 Subject: [PATCH] Use dark grey background color instead of black in view controllers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Felix Paul Kühne --- AspenProject/VLCAboutViewController.m | 3 +++ AspenProject/VLCDropboxTableViewController.m | 1 + AspenProject/VLCGoogleDriveTableViewController.m | 1 + Resources/About Contents.html | 4 ++-- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/AspenProject/VLCAboutViewController.m b/AspenProject/VLCAboutViewController.m index 9f130801..b1677f88 100644 --- a/AspenProject/VLCAboutViewController.m +++ b/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:@"
%@", 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)]; diff --git a/AspenProject/VLCDropboxTableViewController.m b/AspenProject/VLCDropboxTableViewController.m index 90dbd2a1..82e50c82 100644 --- a/AspenProject/VLCDropboxTableViewController.m +++ b/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]; diff --git a/AspenProject/VLCGoogleDriveTableViewController.m b/AspenProject/VLCGoogleDriveTableViewController.m index 2c0c382b..acc4ae0e 100644 --- a/AspenProject/VLCGoogleDriveTableViewController.m +++ b/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]; diff --git a/Resources/About Contents.html b/Resources/About Contents.html index ba461eee..f03bb3bd 100644 --- a/Resources/About Contents.html +++ b/Resources/About Contents.html @@ -1,7 +1,7 @@ - + -
+

-- GitLab