Replace default window titlebar with a custom draggable overlay

Uses Windows' Window Controls Overlay (titleBarStyle: hidden +
titleBarOverlay) so minimize/maximize/close stay real, natively-drawn
buttons instead of custom ones, but recolored to match the active
theme. The renderer supplies a transparent draggable strip in place of
the default title/icon bar.
This commit is contained in:
pvrzz
2026-09-17 21:02:23 -04:00
parent 706ce537e0
commit 211025f840
5 changed files with 46 additions and 2 deletions
+2
View File
@@ -26,6 +26,8 @@ const api: DirectifyIpcApi = {
checkForUpdate: () => ipcRenderer.invoke("app:checkForUpdate"),
openExternal: (url) => ipcRenderer.invoke("app:openExternal", url),
setTitleBarOverlay: (colors) => ipcRenderer.invoke("window:setTitleBarOverlay", colors),
};
contextBridge.exposeInMainWorld("directify", api);