text: function applyWinControls(show, type) {
      if(show) {
          setNone();
      } else {
          let platform = process.platform;
          if(platform === "win32") {
              setWindows(type);
          } else if(platform === "linux") {
              setLinux(type);
          }
          document.body.classList.remove("system-titlebar");
      }
  }
  
  function setNone() {
      let windowControls = document.getElementById("window-controls");
      windowControls.innerHTML = "";
      document.body.classList.add("system-titlebar");
  }
  
  function setWindows(type) {
      let windowControls = document.getElementById("window-controls");
      windowControls.classList.add("windows");
  
      if(type == null) {
          windowControls.innerHTML = `
              <div class="button" id="min-btn" title="Minimize" onclick="minimizeWindow()">
                  <span>&#xE921;</span>
              </div>
              <div class="button" id="max-btn" title="Maximize" onclick="maximizeWindow()">
                  <span>&#xE922;</span>
              </div>
              <div class="button" id="restore-btn" title="Restore Down" onclick="restoreWindow()" style="display: none;">
                  <span>&#xE923;</span>
              </div>
              <div class="button" id="close-btn" title="Close" onclick="closeWindow()">
                  <span>&#xE8BB;</span>
              </div>`;
      } else if(type == "only-close") {
          windowControls.innerHTML = `
              <div class="button" id="close-btn" title="Close" onclick="closeWindow()">
                  <span>&#xE8BB;</span>
              </div>`;
      }
  }
  
  function setLinux(type) {
      let windowControls = document.getElementById("window-controls");
      windowControls.classList.add("linux");
  
      if(type == null) {
          windowControls.innerHTML = `
              <button class="nav-btn" title="Minimize" id="min-btn" onclick="minimizeWindow()"><img name="minimize-12" class="theme-icon"></button>
              <button class="nav-btn" title="Maximize" id="max-btn" onclick="maximizeWindow()"><img name="square-12" class="theme-icon"></button>
              <button style="display: none;" class="nav-btn" title="Restore Down" id="restore-btn" onclick="restoreWindow()"><img name="restore-12" class="theme-icon"></button>
              <button class="nav-btn" title="Close" id="close-btn" onclick="closeWindow()"><img name="cancel-12" class="theme-icon"></button>
          `;
      } else if(type == "only-close") {
          windowControls.innerHTML = `
              <button class="nav-btn" title="Close" id="close-btn" onclick="closeWindow()"><img name="cancel-12" class="theme-icon"></button>
          `;
      }
  }
  
  module.exports = applyWinControls;