nodegui / nodegui-plugin-title-bar

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@nodegui/plugin-title-bar

npm version

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

Installation

npm install @nodegui/plugin-title-bar

Usage

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

About

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


Languages

Language:Objective-C++ 69.5%Language:TypeScript 24.7%Language:C++ 5.8%