From 23452172edfb715ff64bfd431f860c8fa3b43c12 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 25 Jul 2013 15:30:44 +0800 Subject: [PATCH] [Win] Use system's window background for message box. --- browser/message_box_win.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/message_box_win.cc b/browser/message_box_win.cc index 86eaadae..7c1915de 100644 --- a/browser/message_box_win.cc +++ b/browser/message_box_win.cc @@ -8,6 +8,7 @@ #include "base/run_loop.h" #include "base/utf_string_conversions.h" #include "browser/native_window.h" +#include "skia/ext/skia_utils_win.h" #include "ui/views/controls/button/label_button.h" #include "ui/views/controls/message_box_view.h" #include "ui/views/layout/grid_layout.h" @@ -106,7 +107,8 @@ MessageDialog::MessageDialog(NativeWindow* parent_window, widget_->set_frame_type(views::Widget::FRAME_TYPE_FORCE_NATIVE); widget_->Init(widget_params); - set_background(views::Background::CreateStandardPanelBackground()); + set_background(views::Background::CreateSolidBackground( + skia::COLORREFToSkColor(GetSysColor(COLOR_WINDOW)))); widget_->Show(); } -- 2.43.0