mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 09:27:29 +00:00
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
8 lines
251 B
TypeScript
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>
|
|
}
|