seanchas116 / transparent-titlebar

Transparent title bar with native title label in Electron for Mac

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Transparent title bar with native title label in Electron for Mac

License:MIT License


Languages

Language:Objective-C++ 39.8%Language:JavaScript 32.1%Language:HTML 9.6%Language:Python 9.5%Language:C++ 9.0%