diff options
author | Vitaly Takmazov | 2020-05-15 13:43:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-05-15 13:43:02 +0300 |
commit | cdf5882694060ebc4f74cef1afb84a0534c8f839 (patch) | |
tree | ff4ba7ccf45ae9bc8721f4b92306813f3b493ddd | |
parent | 60376f51f869292d50e53cf3a220f74910303edc (diff) |
Global tint color and non-translucent navigation bar
-rw-r--r-- | Juick/AppDelegate.m | 7 | ||||
-rw-r--r-- | Juick/Main.storyboard | 5 |
2 files changed, 4 insertions, 8 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index 441240a..4ff6afd 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -44,13 +44,8 @@ NSString * const UserUpdatedNotificationName = @"UserUpdated"; self.sharedDateFormatter = [NSDateFormatter new]; self.sharedDateFormatter.dateFormat = @"yyyy-MM-dd HH:mm:ss"; [self.sharedDateFormatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]]; - [[UINavigationBar appearance] setTintColor:[UIColor colorNamed:@"Title"]]; - [[UINavigationBar appearance] setBarTintColor:[UIColor colorNamed:@"Background"]]; [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor colorNamed:@"Muted"]}]; - [[UINavigationBar appearance] setLargeTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor colorNamed:@"Muted"]}]; - [[UIToolbar appearance] setTintColor:[UIColor colorNamed:@"Title"]]; - [[UITabBar appearance] setTintColor:[UIColor colorNamed:@"Title"]]; - + [[UINavigationBar appearance] setTranslucent:NO]; [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault; #if !TARGET_IPHONE_SIMULATOR [self registerForRemoteNotifications]; diff --git a/Juick/Main.storyboard b/Juick/Main.storyboard index bfa1a3f..5fc9a0e 100644 --- a/Juick/Main.storyboard +++ b/Juick/Main.storyboard @@ -96,7 +96,7 @@ <objects> <viewController id="4g9-hM-bzq" customClass="LoginViewController" sceneMemberID="viewController"> <view key="view" contentMode="scaleToFill" id="ak5-5Q-P4e"> - <rect key="frame" x="0.0" y="0.0" width="375" height="647"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <stackView opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" axis="vertical" spacing="24" translatesAutoresizingMaskIntoConstraints="NO" id="axR-g5-sfd"> @@ -231,7 +231,7 @@ <objects> <viewController title="New post" hidesBottomBarWhenPushed="YES" id="rr1-jx-MLx" customClass="NewPostViewController" sceneMemberID="viewController"> <view key="view" contentMode="scaleToFill" id="7ep-bO-aeZ"> - <rect key="frame" x="0.0" y="0.0" width="375" height="647"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="XYj-Y4-lfM"> @@ -441,6 +441,7 @@ <point key="canvasLocation" x="1148" y="-889.20539730134942"/> </scene> </scenes> + <color key="tintColor" name="Title"/> <resources> <image name="Splash.png" width="96" height="96"/> <image name="ei-bell" width="25" height="23"/> |