import{setupTitlebar,attachTitlebarToWindow}from"custom-electron-titlebar/main";// setup the titlebar main processsetupTitlebar();functioncreateWindow(){// Create the browser window.constmainWindow=newBrowserWindow({width:800,height:600,//frame: false, // needed if process.versions.electron < 14...
"custom-electron-prompt": "^1.5.0", "custom-electron-titlebar": "^4.1.2", "custom-electron-titlebar": "^4.1.5", "discord-rpc": "^4.0.1", "electron-better-web-request": "^1.0.1", "electron-debug": "^3.2.0", 8 changes: 4 additions & 4 deletions 8 yarn.lock Original file...
Describe the bug The pixels don't seem to be aligned properly on the title bar, making it look blurry. This might seem like a really small thing, but it makes it look a bit off, and its very noticable to me. To Reproduce Steps to reproduce the behavior: Use the library Expected be...
One might argue that WPF is a legacy technology, that has no meaningful future. Well… if you take a look at the current desktop development ecosystem and you target Windows, there aren’t many alternatives. Sure you can use Java, Electron, plain old win32, etc. But… if you are a ....
npm i custom-electron-titlebar 或使用示例文件夹通过此标题栏初始化基本电子项目。 用法 步骤1 在渲染器文件或HTML脚本标签中添加: const customTitlebar = require ( 'custom-electron-titlebar' ) ; new customTitlebar . Titlebar ( { backgroundColor : customTitlebar . Color . fromHex ( '#444' )...
npm install electron-custom-titlebar --save macOS Windows Table of Content Usage API Contributing Usecases License Installation Usage 该模块采用单个可选参数options并导出TitleBar类: importElectronTitlebarfrom'electron-custom-titlebar';consttitlebar=newElectronTitlebar({...options});constcontextElement=doc...
import{setupTitlebar,attachTitlebarToWindow}from"custom-electron-titlebar/main";// setup the titlebar main processsetupTitlebar();functioncreateWindow(){// Create the browser window.constmainWindow=newBrowserWindow({width:800,height:600,//frame: false, // needed if process.versions.electron < 14...
const { app, BrowserWindow } = require('electron') function createWindow () { const win = new BrowserWindow({ // remove the default titlebar titleBarStyle: 'hidden' }) win.loadURL('https://example.com') } app.whenReady().then(() => { createWindow() }) 10 changes: 10 additions &...
Last fix in #148 worked, but it can be fixed in a much better way The original error came from the fact that Electron.MenuItem.click() was called with the wrong parameters: (those are parameters th...
This is a library for electron.js to allow you to add custom titlebars!. Latest version: 0.0.3, last published: a year ago. Start using custom-electronjs-titlebar in your project by running `npm i custom-electronjs-titlebar`. There are no other projects