Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
style: added custom titlebar
Gabriel Steine49429b73d6b
diff --git a/assets/dmg-background.png b/assets/dmg-background.pngindex e800007a2..fcbfac1c4 100644Binary files a/assets/dmg-background.png and b/assets/dmg-background.png differdiff --git a/assets/icon.icns b/assets/icon.icnsindex 3dc9b75eb..6cc523035 100644Binary files a/assets/icon.icns and b/assets/icon.icns differdiff --git a/assets/icon.ico b/assets/icon.icoindex 74375ba6f..367c4cc90 100644Binary files a/assets/icon.ico and b/assets/icon.ico differdiff --git a/assets/icon.png b/assets/icon.pngindex bf60ef600..237a476ed 100644Binary files a/assets/icon.png and b/assets/icon.png differdiff --git a/assets/iconTemplate.png b/assets/iconTemplate.pngdeleted file mode 100644index e14f0957c..000000000Binary files a/assets/iconTemplate.png and /dev/null differdiff --git a/assets/[email protected] b/assets/[email protected]new file mode 100644index 000000000..580f83673Binary files /dev/null and b/assets/[email protected] differdiff --git a/main.js b/main.jsindex 27e73fbc1..058314ec2 100644--- a/main.js+++ b/main.js@@ -206,6 +206,16 @@ async function createControlPanelWindow() {title: 'OpenWispr Control Panel',resizable: true,show: true,+ // Native macOS traffic lights with custom title bar+ titleBarStyle: 'hiddenInset',+ frame: false,+ transparent: false,+ backgroundColor: '#ffffff',+ // Window behavior+ minimizable: true,+ maximizable: true,+ closable: true,+ fullscreenable: true,});// Load control panel with same retry logic@@ -520,6 +530,36 @@ Would you like to open System Settings now?`;});}+// Window control IPC handlers+ipcMain.handle('window-minimize', () => {+ if (controlPanelWindow) {+ controlPanelWindow.minimize();+ }+});++ipcMain.handle('window-maximize', () => {+ if (controlPanelWindow) {+ if (controlPanelWindow.isMaximized()) {+ controlPanelWindow.unmaximize();+ } else {+ controlPanelWindow.maximize();+ }+ }+});++ipcMain.handle('window-close', () => {+ if (controlPanelWindow) {+ controlPanelWindow.close();+ }+});++ipcMain.handle('window-is-maximized', () => {+ if (controlPanelWindow) {+ return controlPanelWindow.isMaximized();+ }+ return false;+});+// IPC handlersipcMain.handle("paste-text", async (event, text) => {try {diff --git a/preload.js b/preload.jsindex db7491ff0..22238f6db 100644--- a/preload.js+++ b/preload.js@@ -29,4 +29,10 @@ contextBridge.exposeInMainWorld('electronAPI', {checkModelStatus: (modelName) => ipcRenderer.invoke('check-model-status', modelName),listWhisperModels: () => ipcRenderer.invoke('list-whisper-models'),deleteWhisperModel: (modelName) => ipcRenderer.invoke('delete-whisper-model', modelName),-});\ No newline at end of file++ // Window control functions+ windowMinimize: () => ipcRenderer.invoke('window-minimize'),+ windowMaximize: () => ipcRenderer.invoke('window-maximize'),+ windowClose: () => ipcRenderer.invoke('window-close'),+ windowIsMaximized: () => ipcRenderer.invoke('window-is-maximized'),+});diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsxindex 2c8423d48..7a17e24e1 100644--- a/src/components/ControlPanel.tsx+++ b/src/components/ControlPanel.tsx@@ -15,6 +15,10 @@ import {FileText,Info,Mic,+ Minus,+ Square,+ ChevronLeft,+ ChevronRight,} from "lucide-react";// Type declaration for electronAPI@@ -51,9 +55,7 @@ declare global {data: { type: string; message: string; output?: string }) => void) => void;- downloadWhisperModel: (- modelName: string- ) => Promise<{+ downloadWhisperModel: (modelName: string) => Promise<{success: boolean;model: string;downloaded: boolean;@@ -74,9 +76,7 @@ declare global {}) => void) => void;- checkModelStatus: (- modelName: string- ) => Promise<{+ checkModelStatus: (modelName: string) => Promise<{success: boolean;model: string;downloaded: boolean;@@ -88,15 +88,18 @@ declare global {models: Array<{ model: string; downloaded: boolean; size_mb?: number }>;cache_dir: string;}>;- deleteWhisperModel: (- modelName: string- ) => Promise<{+ deleteWhisperModel: (modelName: string) => Promise<{success: boolean;model: string;deleted: boolean;freed_mb?: number;error?: string;}>;+ // Window control functions+ windowMinimize: () => Promise<void>;+ windowMaximize: () => Promise<void>;+ windowClose: () => Promise<void>;+ windowIsMaximized: () => Promise<boolean>;};}}@@ -498,22 +501,22 @@ Click OK when you're ready to open System Settings.`;}};- return (- <div className="min-h-screen bg-gradient-to-br from-neutral-50 via-white to-indigo-50/30 p-6">- <div className="max-w-4xl mx-auto space-y-6">- {/* Header */}- <div className="text-center mb-10">- <div className="flex items-center justify-center mb-6">- <div className="w-12 h-12 bg-indigo-600 rounded-xl flex items-center justify-center shadow-sm">- <span className="text-white text-xl font-medium">W</span>- </div>+return (+ <div className="min-h-screen bg-white">+ {/* Custom Title Bar - matching Wispr Flow style */}+ <div className="bg-white border-b border-gray-100 select-none">+ <div className="flex items-center justify-between h-12 px-4" style={{ WebkitAppRegion: 'drag' }}>++ {/* Right section - minimal controls */}+ <div className="flex items-center gap-2" style={{ WebkitAppRegion: 'no-drag' }}>+ {/* Could add settings or other controls here if needed */}</div>- <h1 className="text-3xl font-semibold text-neutral-900 mb-2">- OpenWispr- </h1>- <p className="text-neutral-600">Your voice, your data, your AI</p></div>-+ </div>++ {/* Main content */}+ <div className="bg-gradient-to-br from-neutral-50 via-white to-indigo-50/30 p-6">+ <div className="max-w-4xl mx-auto space-y-6">{/* Transcription Setup Card */}<Card><CardHeader>@@ -1105,6 +1108,7 @@ Click OK when you're ready to open System Settings.`;Built for thinkers who move at the speed of thought</p></div>+ </div></div></div>);