[go: nahoru, domu]

blob: aa6d30cec9fdbfb8ad073cea6d24f81fb86bc862 [file] [log] [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/browser/shared/ui/table_view/table_view_navigation_controller.h"
#import "base/apple/foundation_util.h"
#import "ios/chrome/browser/shared/ui/table_view/chrome_table_view_controller.h"
#import "ios/chrome/browser/shared/ui/table_view/chrome_table_view_styler.h"
#import "ios/chrome/common/ui/colors/semantic_color_names.h"
@implementation TableViewNavigationController
#pragma mark - Public Interface
- (instancetype)initWithTable:(ChromeTableViewController*)table {
return [super initWithRootViewController:table];
}
#pragma mark - View Lifecycle
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationBar.translucent = NO;
self.navigationBar.prefersLargeTitles = YES;
self.toolbar.translucent = NO;
self.navigationBar.barTintColor =
[UIColor colorNamed:kGroupedPrimaryBackgroundColor];
self.toolbar.barTintColor =
[UIColor colorNamed:kGroupedPrimaryBackgroundColor];
self.view.backgroundColor =
[UIColor colorNamed:kGroupedPrimaryBackgroundColor];
}
@end