mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Only transparent window does not have background color
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user