OLD | NEW |
(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 } |
OLD | NEW |