
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
custom-react-electron-titlebar
Advanced tools
Simple titlebar for electron apps for every system.

Install with NPM.
npm install custom-react-electron-titlebar --save
In electron.js file:
const electron = require("electron");
const { app,ipcMain,BrowserWindow } = electron;
mainWindow = new BrowserWindow({
frame: false,
titleBarStyle: 'hidden'});
..
..
..
ipcMain.handle("minimize-event", () => {
mainWindow.minimize();
});
ipcMain.handle("unmaximize-event", () => {
mainWindow.isMaximized() ? mainWindow.unmaximize() : mainWindow.maximize();
});
ipcMain.handle("close-event", () => {
app.quit();
});
In your Component:
import TitleBar from "custom-react-electron-titlebar"
..
..
..
render(){
let options = {
backgroundColor: "#000",
iconsColor: "#FFF",
title: "To Do List",
titleColor: "#FFF",
icon: true,
closeIconClass: "fa fa-times",
maximizeIconClass: "fa fa-square-o",
minimizeIconClass: "fa fa-minus"
}
return(<TitleBar options = { options }/>)}
-backgroundColor:[String] background of titlebar.
-iconsColor:[String] color of fontAwesome Icon.
-title:[String] title of project.
-titleColor:[String] color of project title.
-icon:[Boolean] true | false (get icon href from index.html).
<head>
<link rel="icon" href="/list.png" />
</head>
-closeIconClass:fontAwesome class of close icon.
-maximizeIconClassfontAwesome class of maximize icon.
-minimizeIconClass:fontAwesome class of minimize icon.
Report an issue if you find there's something wrong
FAQs
simple custom electron title bar with react
The npm package custom-react-electron-titlebar receives a total of 1 weekly downloads. As such, custom-react-electron-titlebar popularity was classified as not popular.
We found that custom-react-electron-titlebar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.