$ npm install electron-trubar
—
0
Weekly downloads
1.
$ npm install electron-trubar --save
2.
const { app, BrowserWindow } = require("electron"); const TruBar = require("electron-trubar"); app.on("ready", function() { const mainWindow = new BrowserWindow({ ... }); TruBar(mainWindow, { backgroundColor: "#333", textColor: "#fff", seam: true, seamColor: "#eee", height: 20, trafficLightX: 6.5, trafficLightY: 6.5, title: "My app" }); });
Downloads this week
Versions
Kilobytes
Title
Once installed, import/require it in your app or script.
Run the TruBar()
function on your created window, with
your custom options. This function removes the current
titlebar and creates a new custom one in your app.