Merge pull request #5153 from electron/fix-frameless-background
Fix wrong default transparent background for frameless window
This commit is contained in:
commit
7501a02b34
1 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,8 @@ 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.
|
||||
} else if (!transparent()) {
|
||||
// For normal window, use white as default background.
|
||||
SetBackgroundColor("#FFFF");
|
||||
}
|
||||
std::string title("Electron");
|
||||
|
|
Loading…
Reference in a new issue