feat: add start-at-boot setting and fix tray icon to use app logo

Add auto-launch settings (start at boot + start minimized) to the
Desktop section in Account settings, using Electron's built-in
setLoginItemSettings API across macOS, Windows, and Linux.

Replace the fallback colored-circle tray icon with proper B logo assets:
template images for macOS (adapts to light/dark menu bar) and colored
icons for Windows/Linux. Fix BGRA channel order bug in fallback generator
and move tray icons to resources/ so they're packaged into the app.
This commit is contained in:
Jannis Braun
2026-03-17 02:28:38 +01:00
parent e5f89d4c3f
commit ac7d3cb71b
9 changed files with 201 additions and 14 deletions
+5
View File
@@ -62,4 +62,9 @@ contextBridge.exposeInMainWorld('backspace', {
getInstanceUrl: () => ipcRenderer.invoke('get-instance-url'),
setInstanceUrl: (url: string) => ipcRenderer.invoke('set-instance-url', url),
clearInstanceUrl: () => ipcRenderer.invoke('clear-instance-url'),
// Auto-launch settings
getAutoLaunchSettings: () => ipcRenderer.invoke('get-auto-launch-settings'),
setAutoLaunchSettings: (settings: { openAtLogin?: boolean; startMinimized?: boolean }) =>
ipcRenderer.invoke('set-auto-launch-settings', settings),
});