forked from organicmaps/organicmaps
[ios] Changed navigation appearance settings
This commit is contained in:
parent
2390cd9cef
commit
e4f0ec2ff4
1 changed files with 3 additions and 1 deletions
|
@ -158,9 +158,11 @@ void InitLocalizedStrings()
|
|||
attributes[UITextAttributeTextShadowColor] = [UIColor clearColor];
|
||||
[[UINavigationBar appearance] setTintColor:[UIColor colorWithColorCode:@"393655"]];
|
||||
if (!SYSTEM_VERSION_IS_LESS_THAN(@"7")) {
|
||||
[[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
|
||||
[[UIBarButtonItem appearance] setTitleTextAttributes:attributes forState:UIControlStateNormal];
|
||||
|
||||
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"NavigationBarBackground7"] forBarMetrics:UIBarMetricsDefault];
|
||||
attributes[UITextAttributeFont] = [UIFont fontWithName:@"HelveticaNeue" size:17.5];
|
||||
[[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
|
||||
}
|
||||
if ([UINavigationBar instancesRespondToSelector:@selector(setShadowImage:)])
|
||||
[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];
|
||||
|
|
Loading…
Add table
Reference in a new issue