Sync titlebar overlay with theme
All checks were successful
Build Windows App / build-windows (push) Successful in 25m10s

This commit is contained in:
MrSphay
2026-05-01 18:14:29 +02:00
parent 7f5ed594b7
commit c76489a1e4
4 changed files with 40 additions and 3 deletions

View File

@@ -2,5 +2,6 @@ import { contextBridge, ipcRenderer } from "electron";
contextBridge.exposeInMainWorld("envHelper", {
openFile: () => ipcRenderer.invoke("envhelper:open-file"),
saveFile: (content: string) => ipcRenderer.invoke("envhelper:save-file", content)
saveFile: (content: string) => ipcRenderer.invoke("envhelper:save-file", content),
setTitlebarTheme: (theme: "light" | "dark") => ipcRenderer.invoke("envhelper:set-titlebar-theme", theme)
});