JSPM

  • Created
  • Published
  • Downloads 52
  • Score
    100M100P100Q44975F
  • License MIT

Electron Frame is a simple and customizable window frame build on HTML for your electron application.

Package Exports

  • electron-frame
  • electron-frame/main/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (electron-frame) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Electron Frame

Electron Frame is a simple and customizable window frame built with HTML for your application.

ScreenShots

Windows Frame

Frame Windows Dark

Frame Windows Dark

MacOS Frame

Frame MacOS Dark

Frame MacOS Dark

Screenshots taken on dicionario.js projetct.

How to use

  • Install electron-frame in your project with yarn add electron-frame or npm install electron-frame
  • On the main process, add:
require("electron-frame/main")
  • On preload script, add:
const { ElectronFrame } = require("electron-frame/renderer")
window.addEventListener('DOMContentLoaded', () => {
    const frame = new ElectronFrame()
    frame.insert()
})
  • You can customize your frame by passing some options in the ElectronFrame class instance or using the special class methods.