1.2.1 • Published 5 years ago

@electron-boilerplate/titlebar v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@electron-boilerplate/titlebar

Renders color titlebars in Electron on Windows and optionally on macOS

windows example

mac example

Usage

This library is primarily designed for use with electron-boilerplate which simplifies running code across the Electron main and renderer processes.

npm install electron-boilerplate @electron-boilerplate/titlebar

In your main process simply:

const { ElectronBoilerplate } = require('electron-boilerplate');
const { customTitlebar } = require('@electron-boilerplate/titlebar');

ElectronBoilerplate
  .standardConfiguration()
  .use(customTitlebar('darkblue'))
  .run();

customTitlebar parameters

ParameterTypeDescriptionDefault
colorstringTitlebar background color'#3f51b5'
colorBarOnMacbooleanAlso custom draw a colored titlebar on macOStrue
showTitlebooleanDisplay the page title in the titlebartrue
appendTostringQuery selector used to find element to insert titlebar into. If undefined (the default), then a flex layout is automatically added for youundefined (auto add flex layout)
1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago