Skip to content

Commit

Permalink
Release 1.0.0: Fixed icons
Browse files Browse the repository at this point in the history
- Quick fix for the icons before Release 1.0.0
  • Loading branch information
fudgeu committed Jan 17, 2023
1 parent 14e665a commit 66fced1
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 8 deletions.
Binary file modified assets/icon.ico
Binary file not shown.
Binary file removed assets/icons/1024x1024.png
Binary file not shown.
Binary file modified assets/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/24x24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/icons/512x512.png
Binary file not shown.
Binary file modified assets/icons/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,14 @@
"win": {
"target": [
"nsis"
]
],
"icon": "assets/icon.ico"
},
"nsis": {
"oneClick": true,
"installerIcon": "assets/icon.ico",
"uninstallerIcon": "assets/icon.ico",
"uninstallDisplayName": "Refont"
},
"linux": {
"target": [
Expand Down
17 changes: 10 additions & 7 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ const appdataPath =
? `${process.env.HOME}/Library/Preferences`
: `${process.env.HOME}/.local/share`);

const basePath = app.getAppPath();

let mainWindow: BrowserWindow | null = null;

// load config
Expand All @@ -60,15 +58,15 @@ type Config = {
const schema: Schema<Config> = {
startOnBoot: {
type: 'boolean',
default: true,
default: false,
},
startMinimized: {
type: 'boolean',
default: true,
default: false,
},
automaticallyApplyFont: {
type: 'boolean',
default: true,
default: false,
},
lastFontSet: {
type: 'string',
Expand Down Expand Up @@ -129,7 +127,7 @@ const createWindow = async () => {
width: 1024,
height: 728,
title: 'Refont',
icon: getAssetPath('icon.png'),
icon: getAssetPath('icon.ico'),
webPreferences: {
preload: app.isPackaged
? path.join(__dirname, 'preload.js')
Expand Down Expand Up @@ -461,8 +459,13 @@ ipcMain.on('get-automatically-apply-font', async (event, arg) => {
//

let tray = null;

app.on('ready', () => {
tray = new Tray(nativeImage.createFromPath('assets/icon.png'));
tray = new Tray(
nativeImage.createFromPath(
path.join(process.resourcesPath, 'assets', 'icon.ico')
)
);
const contextMenu = Menu.buildFromTemplate([
{
label: 'Show App',
Expand Down

0 comments on commit 66fced1

Please sign in to comment.