feat: New Vesktop icon (#865)

changes the app icon and tray

Co-authored-by: Wing <44992537+wingio@users.noreply.github.com>
Co-authored-by: khcrysalis <sam4r16@gmail.com>
Co-authored-by: Vendicated <vendicated@riseup.net>
This commit is contained in:
Cookie
2025-10-02 22:02:43 +02:00
committed by GitHub
co-authored by Wing khcrysalis Vendicated
parent 0d9ca2270c
commit 6e2da1d294
21 changed files with 58 additions and 23 deletions
+1 -2
View File
@@ -6,7 +6,7 @@
import { app, BrowserWindow } from "electron";
import { join } from "path";
import { ICON_PATH, VIEW_DIR } from "shared/paths";
import { VIEW_DIR } from "shared/paths";
import { makeLinksOpenExternally } from "./utils/makeLinksOpenExternally";
@@ -17,7 +17,6 @@ export async function createAboutWindow() {
const about = new BrowserWindow({
center: true,
autoHideMenuBar: true,
icon: ICON_PATH,
height,
width
});
+2 -3
View File
@@ -9,7 +9,7 @@ import { BrowserWindow } from "electron/main";
import { copyFileSync, mkdirSync, readdirSync } from "fs";
import { join } from "path";
import { SplashProps } from "shared/browserWinProperties";
import { ICON_PATH, VIEW_DIR } from "shared/paths";
import { VIEW_DIR } from "shared/paths";
import { autoStart } from "./autoStart";
import { DATA_DIR } from "./constants";
@@ -32,8 +32,7 @@ export function createFirstLaunchTour() {
frame: true,
autoHideMenuBar: true,
height: 470,
width: 550,
icon: ICON_PATH
width: 550
});
makeLinksOpenExternally(win);
+2 -3
View File
@@ -24,7 +24,7 @@ import { isTruthy } from "shared/utils/guards";
import { once } from "shared/utils/once";
import type { SettingsStore } from "shared/utils/SettingsStore";
import { ICON_PATH } from "../shared/paths";
import { TRAY_ICON_PATH } from "../shared/paths";
import { createAboutWindow } from "./about";
import { initArRPC } from "./arrpc";
import {
@@ -126,7 +126,7 @@ function initTray(win: BrowserWindow) {
}
]);
tray = new Tray(ICON_PATH);
tray = new Tray(join(TRAY_ICON_PATH, `${process.platform === "darwin" ? "trayTemplate" : "tray"}.png`));
tray.setToolTip("Vesktop");
tray.setContextMenu(trayMenu);
tray.on("click", onTrayClick);
@@ -439,7 +439,6 @@ function createMainWindow() {
// disable renderer backgrounding to prevent the app from unloading when in the background
backgroundThrottling: false
},
icon: ICON_PATH,
frame: !noFrame,
...(transparent && {
transparent: true,
+1 -2
View File
@@ -7,7 +7,7 @@
import { BrowserWindow } from "electron";
import { join } from "path";
import { SplashProps } from "shared/browserWinProperties";
import { ICON_PATH, VIEW_DIR } from "shared/paths";
import { VIEW_DIR } from "shared/paths";
import { Settings } from "./settings";
@@ -16,7 +16,6 @@ let splash: BrowserWindow | undefined;
export function createSplashWindow(startMinimized = false) {
splash = new BrowserWindow({
...SplashProps,
icon: ICON_PATH,
show: !startMinimized,
webPreferences: {
preload: join(__dirname, "splashPreload.js")
+1 -1
View File
@@ -9,4 +9,4 @@ import { join } from "path";
export const STATIC_DIR = /* @__PURE__ */ join(__dirname, "..", "..", "static");
export const VIEW_DIR = /* @__PURE__ */ join(STATIC_DIR, "views");
export const BADGE_DIR = /* @__PURE__ */ join(STATIC_DIR, "badges");
export const ICON_PATH = /* @__PURE__ */ join(STATIC_DIR, "icon.png");
export const TRAY_ICON_PATH = /* @__PURE__ */ join(STATIC_DIR, "tray");