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

[iOS][DarkMode] Use named colors in navigation item

Bug: 976645
Change-Id: Ib1de554f07a3bb4a7fb63b6a57e19fe26dc7e331
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1735384Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684279}
parent a23e237c
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "base/logging.h" #include "base/logging.h"
#import "ios/chrome/browser/ui/popup_menu/public/popup_menu_ui_constants.h" #import "ios/chrome/browser/ui/popup_menu/public/popup_menu_ui_constants.h"
#import "ios/chrome/browser/ui/table_view/chrome_table_view_styler.h" #import "ios/chrome/browser/ui/table_view/chrome_table_view_styler.h"
#import "ios/chrome/common/colors/semantic_color_names.h"
#import "ios/chrome/common/ui_util/constraints_ui_util.h" #import "ios/chrome/common/ui_util/constraints_ui_util.h"
#if !defined(__has_feature) || !__has_feature(objc_arc) #if !defined(__has_feature) || !__has_feature(objc_arc)
...@@ -17,7 +18,6 @@ namespace { ...@@ -17,7 +18,6 @@ namespace {
const CGFloat kImageSize = 16; const CGFloat kImageSize = 16;
const CGFloat kImageCornerRadius = 2; const CGFloat kImageCornerRadius = 2;
const CGFloat kFaviconBackgroundSize = 28; const CGFloat kFaviconBackgroundSize = 28;
const CGFloat kFaviconBackgroundColorAlpha = 0.03;
const CGFloat kFaviconBackgroundCornerRadius = 7; const CGFloat kFaviconBackgroundCornerRadius = 7;
const CGFloat kCellHeight = 44; const CGFloat kCellHeight = 44;
const CGFloat kIconTextMargin = 11; const CGFloat kIconTextMargin = 11;
...@@ -87,7 +87,7 @@ const CGFloat kMaxHeight = 100; ...@@ -87,7 +87,7 @@ const CGFloat kMaxHeight = 100;
if (self) { if (self) {
UIView* selectedBackgroundView = [[UIView alloc] init]; UIView* selectedBackgroundView = [[UIView alloc] init];
selectedBackgroundView.backgroundColor = selectedBackgroundView.backgroundColor =
[UIColor colorWithWhite:0 alpha:kSelectedItemBackgroundAlpha]; [UIColor colorNamed:kTableViewRowHighlightColor];
self.selectedBackgroundView = selectedBackgroundView; self.selectedBackgroundView = selectedBackgroundView;
_titleLabel = [[UILabel alloc] init]; _titleLabel = [[UILabel alloc] init];
...@@ -98,7 +98,7 @@ const CGFloat kMaxHeight = 100; ...@@ -98,7 +98,7 @@ const CGFloat kMaxHeight = 100;
UIView* faviconBackground = [[UIView alloc] init]; UIView* faviconBackground = [[UIView alloc] init];
faviconBackground.translatesAutoresizingMaskIntoConstraints = NO; faviconBackground.translatesAutoresizingMaskIntoConstraints = NO;
faviconBackground.backgroundColor = faviconBackground.backgroundColor =
[UIColor colorWithWhite:0 alpha:kFaviconBackgroundColorAlpha]; [UIColor colorNamed:kFaviconBackgroundColor];
faviconBackground.layer.cornerRadius = kFaviconBackgroundCornerRadius; faviconBackground.layer.cornerRadius = kFaviconBackgroundCornerRadius;
_faviconImageView = [[UIImageView alloc] init]; _faviconImageView = [[UIImageView alloc] init];
......
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