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.
- Host: GitHub
- URL: https://github.com/nodegui/nodegui-plugin-title-bar
- Owner: nodegui
- Created: 2019-11-02T23:08:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T07:39:19.000Z (over 1 year ago)
- Last Synced: 2024-02-25T23:54:37.761Z (4 months ago)
- Language: Objective-C++
- Homepage:
- Size: 509 KB
- Stars: 12
- Watchers: 3
- Forks: 4
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Lists
- 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
```