Fix splash screen

pull/35/head
Niels Andriesse 6 years ago
parent 838eec0c52
commit 3bbcdce95c

@ -16,14 +16,14 @@ public class LoadingViewController: UIViewController {
override public func loadView() { override public func loadView() {
self.view = UIView() self.view = UIView()
view.backgroundColor = UIColor.ows_materialBlue view.backgroundColor = UIColor.lokiDarkestGray()
self.logoView = UIImageView(image: #imageLiteral(resourceName: "logoSignal")) self.logoView = UIImageView(image: #imageLiteral(resourceName: "LokiLogo"))
view.addSubview(logoView) view.addSubview(logoView)
logoView.autoCenterInSuperview() logoView.autoCenterInSuperview()
logoView.autoPinToSquareAspectRatio() logoView.autoSetDimension(.width, toSize: 75)
logoView.autoMatch(.width, to: .width, of: view, withMultiplier: 1/3) logoView.autoSetDimension(.height, toSize: 71)
self.topLabel = buildLabel() self.topLabel = buildLabel()
topLabel.alpha = 0 topLabel.alpha = 0

@ -51,7 +51,6 @@ NSString *NSStringForScreenLockUIState(ScreenLockUIState value)
[edgesView addSubview:imageView]; [edgesView addSubview:imageView];
[imageView autoHCenterInSuperview]; [imageView autoHCenterInSuperview];
const CGSize screenSize = UIScreen.mainScreen.bounds.size;
[imageView autoSetDimension:ALDimensionWidth toSize:75]; [imageView autoSetDimension:ALDimensionWidth toSize:75];
[imageView autoSetDimension:ALDimensionHeight toSize:71]; [imageView autoSetDimension:ALDimensionHeight toSize:71];

Loading…
Cancel
Save