mirror of
https://github.com/pvrzz/directify.git
synced 2026-11-29 05:22:24 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user