Add setBackgroundColor method

This commit is contained in:
Cheng Zhao 2015-10-23 11:35:33 +08:00
parent 4a6134f3f7
commit e36d455d51
8 changed files with 31 additions and 14 deletions

View file

@ -139,6 +139,10 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
if (options.Get(switches::kKiosk, &kiosk) && kiosk) {
SetKiosk(kiosk);
}
std::string color;
if (options.Get(switches::kBackgroundColor, &color)) {
SetBackgroundColor(color);
}
std::string title("Electron");
options.Get(switches::kTitle, &title);
SetTitle(title);