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

Unified Diff: ui/native_theme/native_theme_mac.mm

Issue 2575343005: Native themes: Add MenuItemSubtitleColor (Closed)
Patch Set: Created 4 years 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/native_theme_mac.mm
diff --git a/ui/native_theme/native_theme_mac.mm b/ui/native_theme/native_theme_mac.mm
index 36a58dc1d810ba40479bf2b03a421c9b16c67f28..d51e9aba95098722cff1ccceaef39845ac58629f 100644
--- a/ui/native_theme/native_theme_mac.mm
+++ b/ui/native_theme/native_theme_mac.mm
@@ -147,6 +147,8 @@ SkColor NativeThemeMac::GetSystemColor(ColorId color_id) const {
case kColorId_MenuSeparatorColor:
return base::mac::IsOS10_9() ? kMenuSeparatorColorMavericks
: kMenuSeparatorColor;
+ case kColorId_MenuItemSubtitleColor:
+ return NSSystemColorToSkColor([NSColor disabledControlTextColor]);
case kColorId_MenuBorderColor:
return kMenuBorderColor;

Powered by Google App Engine
This is Rietveld 408576698