Skip to content

Commit

Permalink
Update img paths
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Oct 9, 2018
1 parent 180f5d6 commit 4ee273b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Binary file removed src/img/icon.ico
Binary file not shown.
Binary file added src/img/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ app.on('ready', function() {

mainWindow = new BrowserWindow({
title: 'Altus',
icon: "./img/icon.ico"
icon: "./img/icon.png"
}); //Creates the main window
mainWindow.maximize(); //Maximizing the main window always
mainWindow.loadURL(url.format({ //Loads the mainwindow html file
Expand Down Expand Up @@ -128,7 +128,8 @@ app.on('ready', function() {

function setTray() {
//Tray icon
trayIcon = new Tray('./img/icon.ico');
var trayIconPath = path.join(__dirname, 'img/icon.png');
trayIcon = new Tray(trayIconPath);
const trayContextMenu = Menu.buildFromTemplate([{
label: 'Maximize',
click() {
Expand Down Expand Up @@ -188,7 +189,7 @@ function createAboutWindow() {
} else {
aboutWindow = new BrowserWindow({
parent: mainWindow,
icon: "./img/icon.ico",
icon: "./img/icon.png",
title: "About",
width: 500,
height: 300,
Expand All @@ -215,7 +216,7 @@ function createThemeWindow() { //Creates the theme window
themeWindow = new BrowserWindow({ //Creates new instance of themewindow if not already opened
parent: mainWindow,
modal: true,
icon: "./img/icon.ico",
icon: "./img/icon.png",
title: "Custom Theme"
});
themeWindow.loadURL(url.format({ //loads the theme window html file
Expand All @@ -238,7 +239,7 @@ function createPrefWindow() { //Creates the preferences window
prefWindow = new BrowserWindow({ //Creates new instance of themewindow if not already opened
parent: mainWindow,
modal: true,
icon: "./img/icon.ico",
icon: "./img/icon.png",
title: "Preferences"
});
prefWindow.loadURL(url.format({ //loads the theme window html file
Expand Down

0 comments on commit 4ee273b

Please sign in to comment.