transparent-titlebar
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

transparent-titlebar

Transparent title bar with native title label in Electron for Mac

Example

Using transparent-titlebar titleBarStyle: hidden in Electron Normal
Using transparent-titlebar titleBarStyle: hidden Normal

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

Readme

Keywords

none

Package Sidebar

Install

npm i transparent-titlebar

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

7.03 kB

Total Files

9

Last publish

Collaborators

  • seanchas116