0.2.0 • Published 5 months ago

transparent-titlebar v0.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 months ago

transparent-titlebar

Transparent title bar with native title label in Electron for Mac

Example

Using transparent-titlebartitleBarStyle: hidden in ElectronNormal
Using transparent-titlebartitleBarStyle: hiddenNormal

Install

npm install transparent-titlebar

TypeScript definitions are included.

Use

let win: BrowserWindow
const transparentTitlebar = require('transparent-titlebar')

// Setup window to use transparent titlebar
transparentTitlebar.setup(win.getNativeWindowHandle())

// Set title color (must be called on page load and whenever the title has changed)
transparentTitlebar.setColor(win.getNativeWindowHandle(), 1, 0, 0, 1)

Run Example

cd examples
npm install
npm start
0.2.0

5 months ago

0.1.0

3 years ago