Update icon and icon template

This commit is contained in:
KorbsStudio 2023-01-25 03:25:56 -05:00
parent cc66d51d3e
commit 10692c7394
No known key found for this signature in database
5 changed files with 8 additions and 1 deletions

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -2,8 +2,14 @@ const {app, BrowserWindow, Menu} = require('electron')
const isDev = require('electron-is-dev'); const isDev = require('electron-is-dev');
const {TitlebarRespect} = require('electron-titlebar-respect') const {TitlebarRespect} = require('electron-titlebar-respect')
const glasstron = require('glasstron-clarity'); 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 () { function createWindow () {
const mainWindow = new glasstron.BrowserWindow({ const mainWindow = new glasstron.BrowserWindow({
@ -17,6 +23,7 @@ function createWindow () {
blur: true, blur: true,
frame: global.frame, frame: global.frame,
titleBarStyle: global.titleBarStyle, titleBarStyle: global.titleBarStyle,
icon: path.join(global.AppIcon),
trafficLightPosition: { x: 25, y: 25 }, // Position of Traffic Light buttons on macOS trafficLightPosition: { x: 25, y: 25 }, // Position of Traffic Light buttons on macOS
titleBarOverlay: { // Background and Height of Windows titlebar buttons titleBarOverlay: { // Background and Height of Windows titlebar buttons
color: '#191919', // Background color: '#191919', // Background