Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@incanta/custom-electron-titlebar
Advanced tools
Library for electron that allows you to configure a fully customizable title bar.
This project is a typescript library for electron that allows you to configure a fully customizable title bar.
You can install this package with npm
, pnpm
or yarn
.
npm install custom-electron-titlebar
pnpm add custom-electron-titlebar
yarn add custom-electron-titlebar
The implementation is done as follows:
In the main application file (main.js or .ts)
import { setupTitlebar, attachTitlebarToWindow } from "custom-electron-titlebar/main";
// setup the titlebar main process
setupTitlebar();
function createWindow() {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
//frame: false, // needed if process.versions.electron < 14
titleBarStyle: 'hidden',
/* You can use *titleBarOverlay: true* to use the original Windows controls */
titleBarOverlay: true,
webPreferences: {
sandbox: false,
preload: path.join(__dirname, 'preload.js')
}
});
...
// attach fullScreen(f11 and not 'maximized') && focus listeners
attachTitlebarToWindow(mainWindow);
}
In the preload file (preload.js or .ts)
import { Titlebar } from "custom-electron-titlebar";
window.addEventListener('DOMContentLoaded', () => {
// Title bar implementation
new Titlebar();
});
To see the options you can include in the Title Bar constructor, such as color of elements, icons, menu position, and much more, and the methods you can use, go to the wiki
If you want to support my development, you can do so by donating through 💖 Sponsor
I would like to express my sincere gratitude to all the people who have collaborated in the development and advancement of this project. I appreciate your contributions.
This project is under the MIT license.
FAQs
Library for electron that allows you to configure a fully customizable title bar.
The npm package @incanta/custom-electron-titlebar receives a total of 2 weekly downloads. As such, @incanta/custom-electron-titlebar popularity was classified as not popular.
We found that @incanta/custom-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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.