From cdf5882694060ebc4f74cef1afb84a0534c8f839 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 15 May 2020 13:43:02 +0300 Subject: Global tint color and non-translucent navigation bar --- Juick/AppDelegate.m | 7 +------ 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 @@ - + @@ -231,7 +231,7 @@ - + @@ -441,6 +441,7 @@ + -- cgit v1.2.3