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

Unified Diff: ui/native_theme/common_theme.cc

Issue 1931013002: MD-ify textfields and combobox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « no previous file | ui/views/controls/focusable_border.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 b32b921f8f2b214bbdaed78c98f24649782db0a8..16808accaa1ceb00aac3092d9f6e6d6115001882 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -101,6 +101,19 @@ 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 | « no previous file | ui/views/controls/focusable_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698