From 4838bd783437db9f2712583f6f0a9bb7dd7d669f Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Mon, 29 Jul 2019 08:33:43 -0700 Subject: [PATCH] fix: use GetAuraColor to get theme dependant menu bg color (#19469) --- shell/browser/ui/views/menu_bar.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shell/browser/ui/views/menu_bar.cc b/shell/browser/ui/views/menu_bar.cc index 64a1ae832e43..3d038b86ba8c 100644 --- a/shell/browser/ui/views/menu_bar.cc +++ b/shell/browser/ui/views/menu_bar.cc @@ -12,6 +12,7 @@ #include "shell/common/keyboard_util.h" #include "ui/aura/window.h" #include "ui/base/models/menu_model.h" +#include "ui/native_theme/common_theme.h" #include "ui/views/background.h" #include "ui/views/layout/box_layout.h" #include "ui/views/widget/widget.h" @@ -297,12 +298,9 @@ void MenuBar::RefreshColorCache() { "GtkMenuBar#menubar GtkMenuItem#menuitem:disabled GtkLabel"); #else background_color_ = - theme->GetSystemColor(ui::NativeTheme::kColorId_MenuBackgroundColor); + ui::GetAuraColor(ui::NativeTheme::kColorId_MenuBackgroundColor, theme); #endif } -#if defined(OS_WIN) - background_color_ = color_utils::GetSysSkColor(COLOR_MENUBAR); -#endif } void MenuBar::OnThemeChanged() {