Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: ui/native_theme/common_theme.cc

Issue 2001433002: Update appearance of omnibox focus for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: share constant Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/views/folder_header_view.cc ('k') | ui/native_theme/native_theme_dark_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/common_theme.cc
diff --git a/ui/native_theme/common_theme.cc b/ui/native_theme/common_theme.cc
index 16808accaa1ceb00aac3092d9f6e6d6115001882..d7a29ed6bc55dd8eaba7b3777f02293ec920b278 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -63,6 +63,12 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
// Normal and pressed share a color.
return kLinkEnabledColorMd;
+ // FocusableBorder
+ case NativeTheme::kColorId_FocusedBorderColor:
+ return gfx::kGoogleBlue500;
+ case NativeTheme::kColorId_UnfocusedBorderColor:
+ return SkColorSetA(SK_ColorBLACK, 0x66);
+
// Results Tables
case NativeTheme::kColorId_ResultsTableHoveredBackground:
return SkColorSetA(base_theme->GetSystemColor(
@@ -101,19 +107,6 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
}
}
- if (ui::MaterialDesignController::IsSecondaryUiMaterial()) {
- switch (color_id) {
- // FocusableBorder
- case NativeTheme::kColorId_FocusedBorderColor:
- return gfx::kGoogleBlue500;
- case NativeTheme::kColorId_UnfocusedBorderColor:
- return SkColorSetA(SK_ColorBLACK, 0x66);
-
- default:
- break;
- }
- }
-
// Pre-MD colors.
// Windows:
static const SkColor kWindowBackgroundColor = SK_ColorWHITE;
« no previous file with comments | « ui/app_list/views/folder_header_view.cc ('k') | ui/native_theme/native_theme_dark_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698