Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(937)

Side by Side Diff: ios/chrome/browser/ui/material_components/utils.mm

Issue 2590473002: Upstream Chrome on iOS source code [5/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "ios/chrome/browser/ui/material_components/utils.h"
6
7 #import <UIKit/UIKit.h>
8
9 #import "ios/third_party/material_components_ios/src/components/AppBar/src/Mater ialAppBar.h"
10 #import "ios/third_party/material_components_ios/src/components/FlexibleHeader/s rc/MaterialFlexibleHeader.h"
11 #import "ios/third_party/material_components_ios/src/components/NavigationBar/sr c/MaterialNavigationBar.h"
12 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat erialPalettes.h"
13
14 void ConfigureAppBarWithCardStyle(MDCAppBar* appBar) {
15 appBar.headerViewController.headerView.canOverExtend = NO;
16 appBar.headerViewController.headerView.shiftBehavior =
17 MDCFlexibleHeaderShiftBehaviorDisabled;
18 appBar.headerViewController.headerView.backgroundColor =
19 [[MDCPalette greyPalette] tint200];
20 appBar.navigationBar.tintColor = [[MDCPalette greyPalette] tint900];
21 appBar.navigationBar.titleAlignment = MDCNavigationBarTitleAlignmentLeading;
22 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/material_components/utils.h ('k') | ios/chrome/browser/ui/no_tabs/no_tabs_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698