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...
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 behavior It should ...
npm i custom-electron-titlebar 或使用示例文件夹通过此标题栏初始化基本电子项目。 用法 步骤1 在渲染器文件或HTML脚本标签中添加: const customTitlebar = require ( 'custom-electron-titlebar' ) ; new customTitlebar . Titlebar ( { backgroundColor : customTitlebar . Color . fromHex ( '#444' )...
Electron Custom Titlebar 将基于 CSS 的 UI 标题栏添加到任何基于 Electron 的桌面应用程序。轻巧且可自定义的菜单实现,如 VS Code。 菜单可以用作 electron 的远程 contextMenu 或使用 CSS 进行风格化。 来自electron-titlebar-windows的初始分支,现在作为独立版本。
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...
The original error came from the fact that Electron.MenuItem.click() was called with the wrong parameters: (those are parameters that the user registered callback for click should receive, but electron takes care of that) https://github.com/AlexTorresSk/custom-electron-titlebar/blob/8901746f90...
16 changes: 16 additions & 0 deletions 16 docs/fiddles/features/window-customization/custom-title-bar/custom-drag-region/main.js Original file line numberDiff line numberDiff line change @@ -0,0 +1,16 @@ const { app, BrowserWindow } = require('electron') function createWindow () { cons...
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
Description of Change This PR add a section to the window customization example that walks through how to create custom title bars (with Fiddle examples). It also makes some small wording changes o...