diff --git a/assets/ping.png b/assets/ping.png
new file mode 100644
index 0000000..1d0762a
Binary files /dev/null and b/assets/ping.png differ
diff --git a/src/content/setup.html b/src/content/setup.html
index 9a00dd0..14e11de 100644
--- a/src/content/setup.html
+++ b/src/content/setup.html
@@ -122,7 +122,7 @@
mods: "cumcord",
inviteWebsocket: true,
mobileMode: false,
- trayIcon: "ac_plug_colored",
+ trayIcon: "default",
performanceMode: "none"
});
setTimeout(() => window.armcordinternal.restart(), 5000);
@@ -154,7 +154,7 @@
automaticPatches: false,
performanceMode: "none",
alternativePaste: false,
- trayIcon: "ac_plug_colored",
+ trayIcon: "default",
mods: options.mod,
inviteWebsocket: true
});
@@ -171,7 +171,7 @@
mods: "none",
alternativePaste: false,
performanceMode: "none",
- trayIcon: "ac_plug_colored",
+ trayIcon: "default",
inviteWebsocket: true
});
setTimeout(() => window.armcordinternal.restart(), 500);
diff --git a/src/ipc.ts b/src/ipc.ts
index 045314e..21ff712 100644
--- a/src/ipc.ts
+++ b/src/ipc.ts
@@ -1,5 +1,5 @@
//ipc stuff
-import {app, ipcMain, shell, desktopCapturer} from "electron";
+import {app, ipcMain, shell, desktopCapturer,nativeImage} from "electron";
import {mainWindow} from "./window";
import {
setConfigBulk,
@@ -12,6 +12,8 @@ import {
} from "./utils";
import {customTitlebar} from "./main";
import {createSettingsWindow} from "./settings/main";
+import os from "os";
+import path from "path";
export function registerIpc() {
ipcMain.on("get-app-path", (event, arg) => {
event.reply("app-path", app.getAppPath());
@@ -25,6 +27,21 @@ export function registerIpc() {
ipcMain.on("open-external-link", (event, href: string) => {
shell.openExternal(href);
});
+ ipcMain.on("setPing", (event, pingCount: number) => {
+ switch (os.platform()) {
+ case "linux" ?? "macos":
+ app.setBadgeCount(pingCount)
+ break;
+ case "win32":
+ if (pingCount > 0) {
+ var image = nativeImage.createFromPath(path.join(__dirname, "../", `/assets/ping.png`))
+ mainWindow.setOverlayIcon(image, "badgeCount")
+ } else {
+ mainWindow.setOverlayIcon(null, "badgeCount")
+ }
+ break;
+ }
+ });
ipcMain.on("win-maximize", (event, arg) => {
mainWindow.maximize();
});
diff --git a/src/menu.ts b/src/menu.ts
index f405455..a76e838 100644
--- a/src/menu.ts
+++ b/src/menu.ts
@@ -59,6 +59,13 @@ export async function setMenu() {
createSettingsWindow();
}
},
+ {
+ label: "Reload",
+ accelerator: "CmdOrCtrl+R",
+ click: function () {
+ mainWindow.reload()
+ }
+ },
{
label: "Quit",
accelerator: "CmdOrCtrl+Q",
diff --git a/src/preload/bridge.ts b/src/preload/bridge.ts
index 3870c4f..1365f1e 100644
--- a/src/preload/bridge.ts
+++ b/src/preload/bridge.ts
@@ -16,6 +16,8 @@ contextBridge.exposeInMainWorld("armcord", {
electron: process.versions.electron,
channel: ipcRenderer.sendSync("channel"),
setLang: (lang: string) => ipcRenderer.send("setLang", lang),
+ setPingCount: (pingCount: number) => ipcRenderer.send("setPing", pingCount),
+ setTrayIcon: (favicon: string) => ipcRenderer.send("sendTrayIcon", favicon),
getLang: (toGet: string) =>
ipcRenderer.invoke("getLang", toGet).then((result) => {
return result;
diff --git a/src/settings/hummus.html b/src/settings/hummus.html
index ba2cfb9..010ba50 100644
--- a/src/settings/hummus.html
+++ b/src/settings/hummus.html
@@ -124,7 +124,8 @@