Skip to content

Commit

Permalink
feat: add app icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Apr 11, 2023
1 parent 2265a3e commit 1062f7f
Show file tree
Hide file tree
Showing 24 changed files with 259 additions and 764 deletions.
Binary file added assets/appx/Square150x150Logo.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 added assets/appx/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/appx/StoreLogo.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 added assets/appx/Wide310x150Logo.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/icon.ico
Binary file not shown.
Binary file added assets/linux/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 added assets/linux/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 added assets/linux/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 added assets/linux/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 added assets/linux/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 added assets/mizar-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/main/main.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { app, BrowserWindow, /* nativeImage, */ ipcMain, Menu } from 'electron';
// import * as fs from 'fs';
import { app, BrowserWindow, nativeImage, ipcMain, Menu } from 'electron';
import * as fs from 'fs';
import * as path from 'path';
import * as Store from 'electron-store';
import { ChildProcess, fork, Serializable } from 'child_process';
import * as windowStateKeeper from 'electron-window-state';
import * as remoteMain from '@electron/remote/main';

// import ipcHandlers from './ipc-handlers';
import { autoUpdater } from 'electron-updater';

Store.initRenderer();
const settingsStore = new Store({ name: 'settings' });
autoUpdater.allowPrerelease = settingsStore.get('allow_prerelease', true) as boolean;
// const appTheme = settingsStore.get('application_theme');
const isDevelopment = process.env.NODE_ENV !== 'production';
const isMacOS = process.platform === 'darwin';
Expand All @@ -24,7 +24,7 @@ let mainWindow: BrowserWindow;
let mainWindowState: windowStateKeeper.State;

async function createMainWindow () {
// const icon = require('../renderer/assets/icons/icon.png');
const icon = require('../../assets/mizar-64.png');
const window = new BrowserWindow({
width: mainWindowState.width,
height: mainWindowState.height,
Expand All @@ -34,7 +34,7 @@ async function createMainWindow () {
minHeight: 500,
show: !isWindows,
title: 'Mizar TCP Tester',
// icon: nativeImage.createFromDataURL(icon.default),
icon: nativeImage.createFromDataURL(icon.default),
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/ModalSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
</select>
</div>
<div class="creditsBox">
<img :src="appLogo" width="128">
<div>
{{ appName }} v{{ appVersion }}
</div>
Expand Down Expand Up @@ -56,6 +57,7 @@ const emit = defineEmits(['hide-settings', 'create-port']);
const { t } = useI18n();
const appAuthor = 'Fabio Di Stasio';
const appLogo = require('../images/mizar.svg');
const localLocale: Ref<AvailableLocale> = ref(null);
const locales = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/i18n/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const enUS = {
socketOpen: 'Socket #{number} on {host}:{port} open',
socketClosed: 'Socket #{number} on {host}:{port} closed',
socketMessage: 'Socket #{number} on {host}:{port} message #{mNumber}',
socketReply: 'Socket #{number} on {host}:{port} reply #{reply}',
socketReply: 'Socket #{number} on {host}:{port} reply: {reply}',
logOnSocket: 'Socket #{number} on {host}:{port}: {message}',
loadingMessages: 'Loading messages',
messagesLoaded: 'Messages loaded: {mNumber}',
Expand Down
Binary file removed src/renderer/images/logo-16.png
Binary file not shown.
Binary file removed src/renderer/images/logo-32.png
Binary file not shown.
Binary file removed src/renderer/images/logo-64.png
Binary file not shown.
301 changes: 0 additions & 301 deletions src/renderer/images/logo-dark.svg

This file was deleted.

Loading

0 comments on commit 1062f7f

Please sign in to comment.