Restore custom styled window controls
All checks were successful
Build Windows App / build-windows (push) Successful in 19m20s
All checks were successful
Build Windows App / build-windows (push) Successful in 19m20s
This commit is contained in:
@@ -3,5 +3,7 @@ import { contextBridge, ipcRenderer } from "electron";
|
||||
contextBridge.exposeInMainWorld("envHelper", {
|
||||
openFile: () => ipcRenderer.invoke("envhelper:open-file"),
|
||||
saveFile: (content: string) => ipcRenderer.invoke("envhelper:save-file", content),
|
||||
setTitlebarTheme: (theme: "light" | "dark") => ipcRenderer.invoke("envhelper:set-titlebar-theme", theme)
|
||||
minimizeWindow: () => ipcRenderer.invoke("envhelper:window-minimize"),
|
||||
toggleMaximizeWindow: () => ipcRenderer.invoke("envhelper:window-toggle-maximize"),
|
||||
closeWindow: () => ipcRenderer.invoke("envhelper:window-close")
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user