Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/selected_keyword_view.cc |
| diff --git a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc |
| index fc03c1f925630c79519f2cac109c7cce1f15e568..57249c3e404827d42ca316fbc126b9c34d7b106b 100644 |
| --- a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc |
| +++ b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc |
| @@ -56,10 +56,10 @@ SkColor SelectedKeywordView::GetTextColor() const { |
| if (!ui::MaterialDesignController::IsModeMaterial()) |
| return text_color_; |
| - return color_utils::IsDark(GetParentBackgroundColor()) |
| - ? gfx::kGoogleBlue700 |
| - : GetNativeTheme()->GetSystemColor( |
| - ui::NativeTheme::kColorId_LinkEnabled); |
| + return GetNativeTheme()->GetSystemColor( |
| + color_utils::IsDark(GetParentBackgroundColor()) |
| + ? ui::NativeTheme::kColorId_TextfieldDefaultColor |
|
Peter Kasting
2016/05/25 00:03:27
Was this the final outcome of your discussions wit
Evan Stade
2016/05/25 20:03:44
yes. I've pinged Max again to confirm.
Peter Kasting
2016/05/25 20:23:02
The security guys may feel more strongly than I do
Evan Stade
2016/05/25 21:03:26
Right, and the bad thing about GetReadableColor is
|
| + : ui::NativeTheme::kColorId_LinkEnabled); |
| } |
| SkColor SelectedKeywordView::GetBorderColor() const { |
| @@ -96,16 +96,19 @@ void SelectedKeywordView::SetKeyword(const base::string16& keyword) { |
| bool is_extension_keyword; |
| const base::string16 short_name = |
| model->GetKeywordShortName(keyword, &is_extension_keyword); |
| - const base::string16 full_name = is_extension_keyword ? |
| - short_name : |
| - l10n_util::GetStringFUTF16(IDS_OMNIBOX_KEYWORD_TEXT, short_name); |
| + int keyword_text_id = ui::MaterialDesignController::IsModeMaterial() |
| + ? IDS_OMNIBOX_KEYWORD_TEXT_MD |
| + : IDS_OMNIBOX_KEYWORD_TEXT; |
| + const base::string16 full_name = |
| + is_extension_keyword ? short_name : l10n_util::GetStringFUTF16( |
| + keyword_text_id, short_name); |
| full_label_.SetText(full_name); |
| const base::string16 min_string( |
| location_bar_util::CalculateMinString(short_name)); |
| - const base::string16 partial_name = is_extension_keyword ? |
| - min_string : |
| - l10n_util::GetStringFUTF16(IDS_OMNIBOX_KEYWORD_TEXT, min_string); |
| + const base::string16 partial_name = |
| + is_extension_keyword ? min_string : l10n_util::GetStringFUTF16( |
| + keyword_text_id, min_string); |
| partial_label_.SetText(min_string.empty() ? |
| full_label_.text() : partial_name); |
| } |