forked from organicmaps/organicmaps
[MAPSME-5820] [ios] Removed redundant navigation bar styling.
This commit is contained in:
parent
f8c1c230e5
commit
c5e5cef5a3
4 changed files with 0 additions and 18 deletions
|
@ -786,8 +786,6 @@ using namespace osm_auth_ios;
|
|||
{
|
||||
navigationBar.tintColor = [UIColor primary];
|
||||
navigationBar.barTintColor = [UIColor primary];
|
||||
[navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
|
||||
navigationBar.shadowImage = [UIImage imageWithColor:[UIColor fadeBackground]];
|
||||
navigationBar.titleTextAttributes = [self navigationBarTextAttributes];
|
||||
navigationBar.translucent = NO;
|
||||
}
|
||||
|
|
|
@ -99,13 +99,6 @@ using namespace storage;
|
|||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
UINavigationBar * navBar = [UINavigationBar appearance];
|
||||
self.navBarBackground = [navBar backgroundImageForBarMetrics:UIBarMetricsDefault];
|
||||
self.navBarShadow = navBar.shadowImage;
|
||||
UIColor * searchBarColor = [UIColor primary];
|
||||
[navBar setBackgroundImage:[UIImage imageWithColor:searchBarColor]
|
||||
forBarMetrics:UIBarMetricsDefault];
|
||||
navBar.shadowImage = [[UIImage alloc] init];
|
||||
[MWMFrameworkListener addObserver:self];
|
||||
[self configViews];
|
||||
}
|
||||
|
@ -113,9 +106,6 @@ using namespace storage;
|
|||
- (void)viewWillDisappear:(BOOL)animated
|
||||
{
|
||||
[super viewWillDisappear:animated];
|
||||
UINavigationBar * navBar = [UINavigationBar appearance];
|
||||
[navBar setBackgroundImage:self.navBarBackground forBarMetrics:UIBarMetricsDefault];
|
||||
navBar.shadowImage = self.navBarShadow;
|
||||
[MWMFrameworkListener removeObserver:self];
|
||||
[self notifyParentController];
|
||||
}
|
||||
|
|
|
@ -46,7 +46,6 @@ final class PhotosOverlayView: UIView {
|
|||
navigationBar.backgroundColor = UIColor.clear
|
||||
navigationBar.barTintColor = nil
|
||||
navigationBar.isTranslucent = true
|
||||
navigationBar.shadowImage = UIImage()
|
||||
navigationBar.setBackgroundImage(UIImage(), for: .default)
|
||||
|
||||
navigationItem = UINavigationItem(title: "")
|
||||
|
|
|
@ -46,11 +46,6 @@
|
|||
- (IBAction)clearFilter { [MWMSearch clearFilter]; }
|
||||
- (void)configNavigationBar:(UINavigationBar *)navBar
|
||||
{
|
||||
UIColor * white = [UIColor white];
|
||||
navBar.tintColor = white;
|
||||
navBar.barTintColor = white;
|
||||
[navBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
|
||||
navBar.shadowImage = [UIImage imageWithColor:[UIColor fadeBackground]];
|
||||
navBar.titleTextAttributes = @{
|
||||
NSForegroundColorAttributeName : [UIColor blackPrimaryText],
|
||||
NSFontAttributeName : [UIFont regular17]
|
||||
|
|
Loading…
Add table
Reference in a new issue