From: Cheng Zhao Date: Thu, 25 Jul 2013 07:30:44 +0000 (+0800) Subject: [Win] Use system's window background for message box. X-Git-Tag: v0.1.6~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=23452172edfb715ff64bfd431f860c8fa3b43c12;p=electron.git [Win] Use system's window background for message box. --- 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(); }