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

Unified Diff: ui/native_theme/common_theme.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: ui/native_theme/common_theme.cc
diff --git a/ui/native_theme/common_theme.cc b/ui/native_theme/common_theme.cc
index 07e756beedd0ba1da67551050266b4c5478afe3e..89c38d222c422336fb58a50b5a6e066e96ad0620 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -224,7 +224,7 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
static const SkColor kResultsTableNegativeSelectedText =
color_utils::AlphaBlend(kNegativeTextColor,
kTextfieldSelectionBackgroundFocused, 0xDD);
- // Material spinner/throbber:
+ // Material spinner/throbber
static const SkColor kThrobberSpinningColor = gfx::kGoogleBlue500;
static const SkColor kThrobberWaitingColor = SkColorSetRGB(0xA6, 0xA6, 0xA6);
static const SkColor kThrobberLightColor = SkColorSetRGB(0xF4, 0xF8, 0xFD);
@@ -409,6 +409,14 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
case NativeTheme::kColorId_ThrobberLightColor:
return kThrobberLightColor;
+ // Alert icon colors
+ case NativeTheme::kColorId_AlertSeverityLow:
+ return gfx::kGoogleGreen700;
+ case NativeTheme::kColorId_AlertSeverityMedium:
+ return gfx::kGoogleYellow700;
+ case NativeTheme::kColorId_AlertSeverityHigh:
+ return gfx::kGoogleRed700;
+
case NativeTheme::kColorId_NumColors:
break;
}

Powered by Google App Engine
This is Rietveld 408576698