Update icon and icon template
This commit is contained in:
parent
cc66d51d3e
commit
10692c7394
5 changed files with 8 additions and 1 deletions
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
@ -2,8 +2,14 @@ const {app, BrowserWindow, Menu} = require('electron')
|
|||
const isDev = require('electron-is-dev');
|
||||
const {TitlebarRespect} = require('electron-titlebar-respect')
|
||||
const glasstron = require('glasstron-clarity');
|
||||
const path = require('path')
|
||||
|
||||
|
||||
// Use the correct icon depending on the operating system
|
||||
if /* If macOS */ (process.platform == 'darwin') {global.AppIcon = 'public/images/icons/app/icon.icns' }
|
||||
else if /* If Windows */ (process.platform == 'win32') {global.AppIcon = 'public/images/icons/app/icon.ico' }
|
||||
else /* If Linux */ {global.AppIcon = 'public/images/icons/app/icon.png' }
|
||||
|
||||
let mainWindow;
|
||||
|
||||
function createWindow () {
|
||||
const mainWindow = new glasstron.BrowserWindow({
|
||||
|
@ -17,6 +23,7 @@ function createWindow () {
|
|||
blur: true,
|
||||
frame: global.frame,
|
||||
titleBarStyle: global.titleBarStyle,
|
||||
icon: path.join(global.AppIcon),
|
||||
trafficLightPosition: { x: 25, y: 25 }, // Position of Traffic Light buttons on macOS
|
||||
titleBarOverlay: { // Background and Height of Windows titlebar buttons
|
||||
color: '#191919', // Background
|
||||
|
|
Reference in a new issue