- Add Backspace-design-prototype.html: finalized "Aether Drift" design language with warm matte surfaces and subtle frosted glass accents - Update CLAUDE.md with DESIGN SYSTEM section and remove Discord clone references - Rename all Opencord references to Backspace across the full codebase - Archive outdated design experiments and Discord-specific assets - Add science-backed accessibility fallback (prefers-reduced-transparency)
21 lines
540 B
TypeScript
21 lines
540 B
TypeScript
import { contextBridge, ipcRenderer } from 'electron';
|
|
|
|
contextBridge.exposeInMainWorld('backspace', {
|
|
platform: process.platform,
|
|
showNotification: (title: string, body: string) => {
|
|
ipcRenderer.send('show-notification', { title, body });
|
|
},
|
|
setBadgeCount: (count: number) => {
|
|
ipcRenderer.send('set-badge-count', count);
|
|
},
|
|
minimize: () => {
|
|
ipcRenderer.send('minimize-window');
|
|
},
|
|
maximize: () => {
|
|
ipcRenderer.send('maximize-window');
|
|
},
|
|
close: () => {
|
|
ipcRenderer.send('close-window');
|
|
},
|
|
});
|