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

Unified Diff: ui/native_theme/common_theme.cc

Issue 2623753002: Native themes: Add separator color (Closed)
Patch Set: Created 3 years, 11 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 d7e54827d46a7e921aca6f316ffb829039c697d5..a9b48f9e0b52d1a4b683eb143f57291eff2aed54 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -76,6 +76,8 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
SkColorSetA(SK_ColorBLACK, 0x48);
static const SkColor kMenuSeparatorColor = SkColorSetRGB(0xE9, 0xE9, 0xE9);
static const SkColor kEnabledMenuItemForegroundColor = SK_ColorBLACK;
+ // Separator:
+ static const SkColor kSeparatorColor = SkColorSetRGB(0xE9, 0xE9, 0xE9);
// Link:
static const SkColor kLinkEnabledColor = gfx::kGoogleBlue700;
// Text selection colors:
@@ -211,6 +213,10 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
case NativeTheme::kColorId_LinkPressed:
return kLinkEnabledColor;
+ // Separator
+ case NativeTheme::kColorId_SeparatorColor:
+ return kSeparatorColor;
+
// Textfield
case NativeTheme::kColorId_TextfieldDefaultColor:
return kTextfieldDefaultColor;

Powered by Google App Engine
This is Rietveld 408576698