Commit e8802e5e authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix cloud storage logo init for GDrive, improve drawing for Dropbox

parent 26af6226
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="5023" systemVersion="12F45" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
<dependencies>
<deployment version="1296" defaultVersion="1552" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCCloudStorageTableViewController">
......@@ -40,10 +40,10 @@
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" image="dropbox-white.png" id="9">
<rect key="frame" x="70" y="192" width="179" height="60"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<autoresizingMask key="autoresizingMask"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="20" customClass="VLCMenuButton">
<rect key="frame" x="120" y="312" width="81" height="39"/>
<rect key="frame" x="120" y="387" width="81" height="39"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="Login" backgroundImage="menuButton.png">
......@@ -66,4 +66,4 @@
<image name="dropbox-white.png" width="125" height="42"/>
<image name="menuButton.png" width="63" height="39"/>
</resources>
</document>
\ No newline at end of file
</document>
......@@ -20,14 +20,6 @@
@implementation VLCCloudStorageTableViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
}
return self;
}
- (IBAction)loginAction:(id)sender
{
}
......@@ -36,5 +28,4 @@
{
}
@end
......@@ -77,6 +77,8 @@
self.loginToCloudStorageView.backgroundColor = [UIColor colorWithWhite:.122 alpha:1.];
[self.cloudStorageLogo setImage:[UIImage imageNamed:@"dropbox-white.png"]];
[self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center;
[self.loginButton setTitle:NSLocalizedString(@"DROPBOX_LOGIN", @"") forState:UIControlStateNormal];
[self.navigationController.toolbar setBackgroundImage:[UIImage imageNamed:@"sudHeaderBg"] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];
......
......@@ -91,14 +91,9 @@
- (void)_setupLogo
{
[self.cloudStorageLogo setImage:[UIImage imageNamed:@"driveWhite"]];
CGRect rect;
rect.size = [UIImage imageNamed:@"driveWhite"].size;
rect.origin.x = (self.loginToCloudStorageView.frame.size.width - rect.size.width) / 2;
rect.origin.y = self.loginButton.frame.origin.y - rect.size.height - 50;
[self.cloudStorageLogo setFrame:CGRectIntegral(rect)];
[self.cloudStorageLogo setImage:[UIImage imageNamed:@"DriveWhite"]];
[self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center;
}
- (GTMOAuth2ViewControllerTouch *)createAuthController
......
Markdown is supported
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