Skip to content

Desktop app that records your on-screen work session and uses the GitHub Copilot SDK to reconstruct it as an intent + ordered steps, then builds a reusable Skill or Automation for Microsoft Autopilots like Scout, Microsoft Copilot Cowork, or Copilot Studio.

Add a static red-dot app icon for dock, tray, and windows

adileif4ced24ee462
diff --git a/build/icon.png b/build/icon.png
new file mode 100644
index 0000000..a136e94
Binary files /dev/null and b/build/icon.png differ
diff --git a/electron/assets/icons/app-active.png b/electron/assets/icons/app-active.png
new file mode 100644
index 0000000..a136e94
Binary files /dev/null and b/electron/assets/icons/app-active.png differ
diff --git a/electron/assets/icons/tray-active.png b/electron/assets/icons/tray-active.png
new file mode 100644
index 0000000..d61ed32
Binary files /dev/null and b/electron/assets/icons/tray-active.png differ
diff --git a/electron/assets/icons/[email protected] b/electron/assets/icons/[email protected]
new file mode 100644
index 0000000..d6c1178
Binary files /dev/null and b/electron/assets/icons/[email protected] differ
diff --git a/electron/icons.ts b/electron/icons.ts
new file mode 100644
index 0000000..60aa19b
--- /dev/null
+++ b/electron/icons.ts
@@ -0,0 +1,49 @@
+import path from "node:path";
+import { fileURLToPath } from "node:url";
+
+import { nativeImage } from "electron";
+
+/**
+ * Runtime icon assets are copied next to the bundled main process into
+ * `dist-electron/assets/icons` (see `copyStaticAssets` in vite.config.ts), so
+ * they resolve identically in `vite dev` and in a packaged build.
+ *
+ * The app uses a single static identity: the "recording" tile with the red dot.
+ */
+const dirname = path.dirname(fileURLToPath(import.meta.url));
+const ICON_DIR = path.join(dirname, "assets", "icons");
+
+const iconFile = (name: string): string => path.join(ICON_DIR, name);
+
+function load(name: string): Electron.NativeImage | null {
+ const image = nativeImage.createFromPath(iconFile(name));
+ return image.isEmpty() ? null : image;
+}
+
+/**
+ * Tray glyph for the menu bar / notification area. macOS uses the fixed-red
+ * recording glyph (kept as a colour image, not a template, so it stays red);
+ * elsewhere we reuse the full-colour app tile, sized down.
+ */
+export function trayIcon(): Electron.NativeImage | null {
+ if (process.platform === "darwin") {
+ return load("tray-active.png");
+ }
+ const tile = load("app-active.png");
+ return tile ? tile.resize({ width: 32, height: 32 }) : null;
+}
+
+/** Full-resolution red-dot app tile used to drive the macOS Dock icon. */
+export function dockIcon(): Electron.NativeImage | null {
+ if (process.platform !== "darwin") return null;
+ return load("app-active.png");
+}
+
+/**
+ * Window icon for Windows/Linux (taskbar + title bar). macOS returns undefined
+ * because it draws windows from the app bundle / Dock icon instead.
+ */
+export function windowIcon(): Electron.NativeImage | undefined {
+ if (process.platform === "darwin") return undefined;
+ return load("app-active.png") ?? undefined;
+}
diff --git a/electron/main.ts b/electron/main.ts
index 790179e..79452cd 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -13,6 +13,7 @@ import { deleteSession } from "./sessions";
import { SkillBuilder } from "./skillbuilder/builder";
import { AutomationBuilder } from "./automationbuilder/builder";
import { createTray } from "./tray";
+import { dockIcon } from "./icons";
import { AudioRecorder } from "./audio/recorder";
import { VideoRecorder } from "./video/recorder";
import {
@@ -26,6 +27,9 @@ import {
const log = createLogger("Main");
+/** Static red-dot tile used for the macOS Dock icon. */
+const dock = dockIcon();
+
let recorderWindow: BrowserWindow | null = null;
let libraryWindow: BrowserWindow | null = null;
let recordingControlsWindow: BrowserWindow | null = null;
@@ -174,6 +178,7 @@ function clampControlsToDisplay(): void {
app.whenReady().then(async () => {
if (process.platform === "win32") Menu.setApplicationMenu(null);
+ if (dock && app.dock) app.dock.setIcon(dock);
narration.initialize();
try {
diff --git a/electron/tray.ts b/electron/tray.ts
index c3a54be..4635841 100644
--- a/electron/tray.ts
+++ b/electron/tray.ts
@@ -1,9 +1,10 @@
import { Menu, Tray, nativeImage } from "electron";
+import { trayIcon } from "./icons";
import type { RecorderController } from "./recorder/controller";
-/** Build a 16x16 tray glyph in code so we don't depend on an icon asset yet. */
-function trayIcon(): Electron.NativeImage {
+/** Last-resort tray glyph drawn in code, used only if the icon assets are missing. */
+function fallbackTrayIcon(): Electron.NativeImage {
const size = 16;
const buf = Buffer.alloc(size * size * 4);
const c = (size - 1) / 2;
@@ -13,9 +14,9 @@ function trayIcon(): Electron.NativeImage {
const x = i % size;
const y = Math.floor(i / size);
const inside = (x - c) ** 2 + (y - c) ** 2 <= r * r;
- buf[o] = 70; // B
- buf[o + 1] = 70; // G
- buf[o + 2] = 225; // R
+ buf[o] = 42; // B
+ buf[o + 1] = 54; // G
+ buf[o + 2] = 237; // R
buf[o + 3] = inside ? 255 : 0; // A
}
return nativeImage.createFromBitmap(buf, { width: size, height: size });
@@ -27,7 +28,7 @@ export function createTray(
showRecorderWindow: () => void,
showRecordingControls: () => void,
): Tray {
- const tray = new Tray(trayIcon());
+ const tray = new Tray(trayIcon() ?? fallbackTrayIcon());
tray.setToolTip("Skill Recorder");
const rebuild = () => {
diff --git a/electron/window.ts b/electron/window.ts
index c3e58c5..604d079 100644
--- a/electron/window.ts
+++ b/electron/window.ts
@@ -9,6 +9,7 @@ import {
initialRecordingControlsBounds,
resizeRecordingControlsBounds,
} from "./recording-controls-bounds";
+import { windowIcon } from "./icons";
const dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -49,6 +50,7 @@ export function createRecorderWindow(): BrowserWindow {
maximizable: false,
fullscreenable: false,
title: "Skill Recorder",
+ icon: windowIcon(),
backgroundColor: "#faf8f5",
webPreferences: {
preload: path.join(dirname, "preload.cjs"),
@@ -183,6 +185,7 @@ export function createLibraryWindow(recorder: BrowserWindow): BrowserWindow {
minHeight: 480,
show: false,
title: "Skill Recorder: Sessions",
+ icon: windowIcon(),
backgroundColor: "#faf8f5",
webPreferences: {
preload: path.join(dirname, "preload.cjs"),
diff --git a/package.json b/package.json
index 9f826e1..e6b4b6d 100644
--- a/package.json
+++ b/package.json
@@ -68,6 +68,7 @@
"node_modules/onnxruntime-node/**"
],
"mac": {
+ "icon": "build/icon.png",
"target": [
"dmg",
"zip"
@@ -88,6 +89,7 @@
}
},
"win": {
+ "icon": "build/icon.png",
"files": [
"dist/**",
"dist-electron/**",
diff --git a/vite.config.ts b/vite.config.ts
index 53ae27b..97a7ee0 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,4 +1,4 @@
-import { copyFileSync, mkdirSync } from "node:fs";
+import { copyFileSync, mkdirSync, readdirSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
@@ -15,6 +15,12 @@ function copyStaticAssets(): void {
mkdirSync(out, { recursive: true });
mkdirSync(path.join(out, "video"), { recursive: true });
mkdirSync(path.join(out, "audio"), { recursive: true });
+ const icons = path.join(out, "assets", "icons");
+ mkdirSync(icons, { recursive: true });
+ const iconSrc = path.join(rootDir, "electron", "assets", "icons");
+ for (const file of readdirSync(iconSrc)) {
+ copyFileSync(path.join(iconSrc, file), path.join(icons, file));
+ }
copyFileSync(path.join(rootDir, "electron", "preload.cjs"), path.join(out, "preload.cjs"));
copyFileSync(
path.join(rootDir, "electron", "video", "capture.html"),