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

Unified Diff: ui/native_theme/native_theme_win.cc

Issue 2241293003: [MD User Menu] Adjusted its background color (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Break in win 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
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index ce865996b534254d4ea8f2ba9bf7631511f01b3c..043a3d47278a278e01d1c455157a9ae06ceec4b9 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -493,6 +493,8 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
// Dialogs
case kColorId_DialogBackground:
case kColorId_BubbleBackground:
+ if (ui::MaterialDesignController::IsSecondaryUiMaterial())
+ break;
return color_utils::IsInvertedColorScheme() ?
color_utils::InvertColor(kDialogBackgroundColor) :
kDialogBackgroundColor;
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698