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

Unified Diff: chrome/browser/ui/views/toolbar/app_menu_button.cc

Issue 2245143005: Move upgrade severity colors into NativeTheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: chrome/browser/ui/views/toolbar/app_menu_button.cc
diff --git a/chrome/browser/ui/views/toolbar/app_menu_button.cc b/chrome/browser/ui/views/toolbar/app_menu_button.cc
index a83f91a934d1f4cdd8db3d426f48ea9979b15421..5038889da646439c418d54cbc22976dad86d8c3b 100644
--- a/chrome/browser/ui/views/toolbar/app_menu_button.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu_button.cc
@@ -140,19 +140,23 @@ void AppMenuButton::ScheduleAppMenuIconPaint() {
void AppMenuButton::UpdateIcon() {
DCHECK(ui::MaterialDesignController::IsModeMaterial());
SkColor color = gfx::kPlaceholderColor;
+ const ui::NativeTheme* native_theme = GetNativeTheme();
switch (severity_) {
case AppMenuIconPainter::SEVERITY_NONE:
color = GetThemeProvider()->GetColor(
ThemeProperties::COLOR_TOOLBAR_BUTTON_ICON);
break;
case AppMenuIconPainter::SEVERITY_LOW:
- color = gfx::kGoogleGreen700;
+ color = native_theme->GetSystemColor(
+ ui::NativeTheme::kColorId_AlertSeverityLow);
break;
case AppMenuIconPainter::SEVERITY_MEDIUM:
- color = gfx::kGoogleYellow700;
+ color = native_theme->GetSystemColor(
+ ui::NativeTheme::kColorId_AlertSeverityMedium);
break;
case AppMenuIconPainter::SEVERITY_HIGH:
- color = gfx::kGoogleRed700;
+ color = native_theme->GetSystemColor(
+ ui::NativeTheme::kColorId_AlertSeverityHigh);
break;
}

Powered by Google App Engine
This is Rietveld 408576698