Commit ccd95a49 authored by Javier Ernesto Flores Robles's avatar Javier Ernesto Flores Robles Committed by Commit Bot

[iOS][DarkMode] Updates colors in navigation bars

Updates |ConfigureAppBarViewControllerWithCardStyle| to use dynamic
colors. Refer to the following screenshots to compare the new and
current colors.

Current: https://drive.google.com/file/d/10qCWfVAOsX9qyAcsVxH2j4z0ITZxpjii
New: https://drive.google.com/open?id=1Zg41IJbdRNy_inW0XkpVf-53yGXSK5J2
New [DarkMode]: https://drive.google.com/file/d/1W5GLOqs1pQRzLFwYnXhKZbP_boemtYCQ

Bug: 976640
Change-Id: Ide94265446256cad561acea538ee1430bfa0d946
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1690852
Auto-Submit: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Reviewed-by: default avatarPeter Lee <pkl@chromium.org>
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#675638}
parent 23132c3b
...@@ -16,6 +16,7 @@ source_set("material_components") { ...@@ -16,6 +16,7 @@ source_set("material_components") {
deps = [ deps = [
"//base", "//base",
"//ios/chrome/browser/ui/colors", "//ios/chrome/browser/ui/colors",
"//ios/chrome/common/colors",
"//ios/third_party/material_components_ios", "//ios/third_party/material_components_ios",
] ]
libs = [ "UIKit.framework" ] libs = [ "UIKit.framework" ]
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#include "base/mac/foundation_util.h" #include "base/mac/foundation_util.h"
#import "ios/chrome/common/colors/UIColor+cr_semantic_colors.h"
#import "ios/third_party/material_components_ios/src/components/AppBar/src/MDCAppBarContainerViewController.h" #import "ios/third_party/material_components_ios/src/components/AppBar/src/MDCAppBarContainerViewController.h"
#import "ios/third_party/material_components_ios/src/components/AppBar/src/MaterialAppBar.h" #import "ios/third_party/material_components_ios/src/components/AppBar/src/MaterialAppBar.h"
#import "ios/third_party/material_components_ios/src/components/FlexibleHeader/src/MaterialFlexibleHeader.h" #import "ios/third_party/material_components_ios/src/components/FlexibleHeader/src/MaterialFlexibleHeader.h"
...@@ -42,8 +43,8 @@ void ConfigureAppBarViewControllerWithCardStyle( ...@@ -42,8 +43,8 @@ void ConfigureAppBarViewControllerWithCardStyle(
viewController.headerView.shiftBehavior = viewController.headerView.shiftBehavior =
MDCFlexibleHeaderShiftBehaviorDisabled; MDCFlexibleHeaderShiftBehaviorDisabled;
viewController.headerView.backgroundColor = viewController.headerView.backgroundColor =
[[MDCPalette greyPalette] tint200]; UIColor.cr_secondarySystemBackgroundColor;
viewController.navigationBar.tintColor = [[MDCPalette greyPalette] tint900]; viewController.navigationBar.tintColor = UIColor.cr_labelColor;
viewController.navigationBar.titleAlignment = viewController.navigationBar.titleAlignment =
MDCNavigationBarTitleAlignmentLeading; MDCNavigationBarTitleAlignmentLeading;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment