Window with frame should have white background by default
This commit is contained in:
parent
f94661547c
commit
491bf30a15
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
|
||||||
std::string color;
|
std::string color;
|
||||||
if (options.Get(options::kBackgroundColor, &color)) {
|
if (options.Get(options::kBackgroundColor, &color)) {
|
||||||
SetBackgroundColor(color);
|
SetBackgroundColor(color);
|
||||||
|
} else if (has_frame()) {
|
||||||
|
// For window with frame, use white as default background.
|
||||||
|
SetBackgroundColor("#FFFF");
|
||||||
}
|
}
|
||||||
std::string title("Electron");
|
std::string title("Electron");
|
||||||
options.Get(options::kTitle, &title);
|
options.Get(options::kTitle, &title);
|
||||||
|
|
Loading…
Reference in a new issue