Only transparent window does not have background color
This commit is contained in:
parent
9e85cb4c11
commit
11ba1832d1
1 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,8 @@ 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()) {
|
} else if (!transparent()) {
|
||||||
// For window with frame, use white as default background.
|
// For normal window, use white as default background.
|
||||||
SetBackgroundColor("#FFFF");
|
SetBackgroundColor("#FFFF");
|
||||||
}
|
}
|
||||||
std::string title("Electron");
|
std::string title("Electron");
|
||||||
|
|
Loading…
Add table
Reference in a new issue