title: Electron Modify Options without recreating the window
body: <p>I'got an issue with my application. I've created a nice looking Login-Window which is a window with the options <strong><em>{transparent: true, frame: false}.</em></strong></p>
  
  <p>After the user has logged in. I want to "redirect" to the Dashboard where I need to set the option "transparent" back to false because the background of the Dashboard is white and Im only able to the printed font on a fully transparent window.</p>
  
  <p>Is there any workaround to get the Electronwindow back to none transparent without recreating it. </p>
  
  <p><strong>app.js:</strong></p>
  
  <pre><code>const electron = require('electron');
  const { BrowserWindow } = electron;
  const { app } = electron;
  const window = require('electron-window');
  
  const { MainProcess } = require("./modules/ipcHelper.js");
  
  const io = require('socket.io-client');
  const port = 8888;
  let socket;
  
  require('electron-reload')(__dirname)
  
  let mainWindow;
  
  app.on('ready', () =&gt; {
      mainWindow = window.createWindow({
          width: 835,
          height: 750,
          frame: false,
          transparent: true,
      });
  
    let testwindow = new BrowserWindow({
          width: 835,
          height: 750,
          frame: false,
          transparent: true,
      });
  
      mainWindow.showUrl(`./app/index.html`, () =&gt; {
  
      });
  
      let mainProcess = MainProcess(mainWindow);
  
      mainProcess.onReady(() =&gt; {
          mainProcess.on('auth', (arg, callback) =&gt; {
              socket = io('http://' + arg.servername + ':' + port);
  
              socket.on("connect", () =&gt; {
                  socket.emit('auth', { username: arg.username, password: arg.password }, (response) =&gt; {
                      if (response.success === true){
                          callback({ success: true });
                      //Here i want to set transparenty back to false
                      }
                      else
                          callback({ success: false, code: response.code });
                  });
              });
  
              socket.on("connect_error",() =&gt; {
                  callback({ success: false, code: 3 });
              });
  
  
          });
      });
  })
  </code></pre>