Commit e4531664 authored by Yi Su's avatar Yi Su Committed by Commit Bot

Change URL text label color for a11y reason.

This CL changes the URL label color of TableViewURLCell's URL for
search engine settings to Google Grey 700 for a11y reason.

Bug: 963520
Change-Id: I03950af95b85ab096d315bafec6bbb645f2620b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1610075Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: Yi Su <mrsuyi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660039}
parent 5f8825b1
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "base/mac/foundation_util.h" #include "base/mac/foundation_util.h"
#include "base/strings/sys_string_conversions.h" #include "base/strings/sys_string_conversions.h"
#import "ios/chrome/browser/ui/settings/cells/settings_cells_constants.h"
#import "ios/chrome/browser/ui/table_view/cells/table_view_cells_constants.h" #import "ios/chrome/browser/ui/table_view/cells/table_view_cells_constants.h"
#import "ios/chrome/browser/ui/table_view/cells/table_view_detail_text_item.h" #import "ios/chrome/browser/ui/table_view/cells/table_view_detail_text_item.h"
#import "ios/chrome/browser/ui/table_view/cells/table_view_url_item.h" #import "ios/chrome/browser/ui/table_view/cells/table_view_url_item.h"
...@@ -63,6 +64,8 @@ ...@@ -63,6 +64,8 @@
if (styler.cellTitleColor) if (styler.cellTitleColor)
cell.titleLabel.textColor = styler.cellTitleColor; cell.titleLabel.textColor = styler.cellTitleColor;
cell.URLLabel.textColor = UIColorFromRGB(kSettingsCellsURLTextColor);
[cell configureUILayout]; [cell configureUILayout];
} else { } else {
TableViewDetailTextCell* cell = TableViewDetailTextCell* cell =
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
// The color of the detail text for the settings cells. // The color of the detail text for the settings cells.
extern const int kSettingsCellsDetailTextColor; extern const int kSettingsCellsDetailTextColor;
// The color of the URL text for the settings cells.
extern const int kSettingsCellsURLTextColor;
// Default height for the settings cells. // Default height for the settings cells.
extern const CGFloat kSettingsCellDefaultHeight; extern const CGFloat kSettingsCellDefaultHeight;
......
...@@ -9,5 +9,6 @@ ...@@ -9,5 +9,6 @@
#endif #endif
const int kSettingsCellsDetailTextColor = 0x767676; const int kSettingsCellsDetailTextColor = 0x767676;
const int kSettingsCellsURLTextColor = 0x5F6368;
const CGFloat kSettingsCellDefaultHeight = 70; const CGFloat kSettingsCellDefaultHeight = 70;
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