Commit ae60a5da authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

cloud login view: save a few selector dispatches

parent e8802e5e
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</connections> </connections>
</button> </button>
</subviews> </subviews>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/> <color key="backgroundColor" red="0.12156862745098039" green="0.12156862745098039" blue="0.12156862745098039" alpha="1" colorSpace="calibratedRGB"/>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/> <simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
</view> </view>
</objects> </objects>
......
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
_downloadingBarLabel = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DOWNLOADING",@"") style:UIBarButtonItemStylePlain target:nil action:nil]; _downloadingBarLabel = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DOWNLOADING",@"") style:UIBarButtonItemStylePlain target:nil action:nil];
[_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal]; [_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
self.loginToCloudStorageView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
[self.cloudStorageLogo setImage:[UIImage imageNamed:@"dropbox-white.png"]]; [self.cloudStorageLogo setImage:[UIImage imageNamed:@"dropbox-white.png"]];
[self.cloudStorageLogo sizeToFit]; [self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center; self.cloudStorageLogo.center = self.view.center;
......
...@@ -74,8 +74,9 @@ ...@@ -74,8 +74,9 @@
_downloadingBarLabel = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DOWNLOADING",@"") style:UIBarButtonItemStylePlain target:nil action:nil]; _downloadingBarLabel = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DOWNLOADING",@"") style:UIBarButtonItemStylePlain target:nil action:nil];
[_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal]; [_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
self.loginToCloudStorageView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.]; [self.cloudStorageLogo setImage:[UIImage imageNamed:@"DriveWhite"]];
[self _setupLogo]; [self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center;
[self.loginButton setTitle:NSLocalizedString(@"DROPBOX_LOGIN", @"") forState:UIControlStateNormal]; [self.loginButton setTitle:NSLocalizedString(@"DROPBOX_LOGIN", @"") forState:UIControlStateNormal];
...@@ -89,13 +90,6 @@ ...@@ -89,13 +90,6 @@
[self.view addSubview:_activityIndicator]; [self.view addSubview:_activityIndicator];
} }
- (void)_setupLogo
{
[self.cloudStorageLogo setImage:[UIImage imageNamed:@"DriveWhite"]];
[self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center;
}
- (GTMOAuth2ViewControllerTouch *)createAuthController - (GTMOAuth2ViewControllerTouch *)createAuthController
{ {
_authController = [[GTMOAuth2ViewControllerTouch alloc] initWithScope:kGTLAuthScopeDrive _authController = [[GTMOAuth2ViewControllerTouch alloc] initWithScope:kGTLAuthScopeDrive
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment