0.0.5 • Published 1 year ago

electron-titlebar-testing v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Simple Electron Titlebar

This is a custom titlebar for electron and it supports windows, mac, and linux icons

Installation

Install simple-electron-titlebar with npm

npm install simple-electron-titlebar

Documentation

Your main electron file

var titlebar = require('simple-electron-titlebar');

const createWindow = () => {
    // Create the browser window.
    const mainWindow = new BrowserWindow({
        width: 800,
        height: 600,
        titleBarStyle: 'hidden',
        frame: false,
        webPreferences: {
            webviewTag: true,
            preload: path.join(__dirname, 'preload.js'),
        },
    });
    // Windows Titlebar (Win32 / Win64)
    titlebar.win32()

    // Mac Titlebar
    titlebar.osx()

    // Linux Titlebar
    titlebar.linux()

    // All Platform Support
    titlebar.auto()
};

In your HTML file add

<div class="titlebar"></div>

Authors

@WorstGameDev

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago