Window with frame should have white background by default

This commit is contained in:
Cheng Zhao 2016-04-03 12:04:58 +09:00
parent f94661547c
commit 491bf30a15

View file

@ -162,6 +162,9 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
std::string color;
if (options.Get(options::kBackgroundColor, &color)) {
SetBackgroundColor(color);
} else if (has_frame()) {
// For window with frame, use white as default background.
SetBackgroundColor("#FFFF");
}
std::string title("Electron");
options.Get(options::kTitle, &title);