Files
orca/src/preload/api/app-icon-api.ts
T
Neil 009def47a6 feat(app-icon): import a custom app icon from Appearance settings (#39443)
Adds a Custom… option to the App Icon switcher. The picked PNG/JPEG is
header-checked before decoding (square, 64–2048 px, ≤10 MB), re-encoded as
PNG into userData, and applied to the macOS Dock and every window icon. It
persists across restarts and can be removed, which resets to Classic.

Closes #13316
2026-11-07 18:22:37 -08:00

8 lines
251 B
TypeScript

import type { CustomAppIconImportResult } from '../../shared/app-icon'
export type AppIconApi = {
importCustom: () => Promise<CustomAppIconImportResult | null>
readCustomPreview: () => Promise<string | null>
removeCustom: () => Promise<void>
}