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: about 1 month ago
JSON representation
Plugin for NodeGUI to hide macOS title bar and leave only traffic lights.
- Host: GitHub
- URL: https://github.com/nodegui/nodegui-plugin-title-bar
- Owner: nodegui
- Created: 2019-11-02T23:08:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T07:39:19.000Z (about 2 years ago)
- Last Synced: 2024-09-22T03:38:40.309Z (3 months ago)
- Language: Objective-C++
- Homepage:
- Size: 509 KB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-nodegui - nodegui-plugin-title-bar - Plugin for NodeGUI to hide macOS title bar and leave only traffic lights. (Plugins / Samples and Experiments)
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
```