Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/nodegui/nodegui-plugin-title-bar

Plugin for NodeGUI to hide macOS title bar and leave only traffic lights.
https://github.com/nodegui/nodegui-plugin-title-bar

Last synced: 2 months ago
JSON representation

Plugin for NodeGUI to hide macOS title bar and leave only traffic lights.

Lists

README

        

# @nodegui/plugin-title-bar

[![npm version](https://img.shields.io/npm/v/@nodegui/plugin-title-bar.svg)](https://www.npmjs.com/package/@nodegui/plugin-title-bar)

Plugin for NodeGUI to hide macOS title bar and leave only traffic lights.





## Installation

```sh
npm install @nodegui/plugin-title-bar
```

## Usage

```javascript
import { QMainWindow } from '@nodegui/nodegui'
import { setTitleBarStyle } from '@nodegui/plugin-title-bar'

const window = new QMainWindow()
window.show()
setTitleBarStyle(window.native, 'hidden') // or hiddenInset
global.win = window // Prevents window from being garbage collected
```