Fully custom titlebar, search status/sort filters, and import by link

- Replace Window Controls Overlay with a fully frameless window and
  custom minimize/maximize/close buttons, since even the native
  overlay always paints a flat rect that can't blend into this app's
  gradient/glass backgrounds. Sidebar and content now reach the true
  top of the window instead of leaving a reserved gap.
- Add ranked-status filter chips (ranked/qualified/loved/pending/wip/
  graveyard/approved) and a sort dropdown (favourites, plays,
  difficulty, newest/oldest) to Find maps, backed by real Favourites/
  Playcount fields confirmed present on catboy.best's API.
- Add "Import by link": paste an osu! beatmapset URL or bare numeric
  ID to fetch and install it directly, without a text search.
This commit is contained in:
pvrzz
2026-09-17 21:26:12 -04:00
parent 211025f840
commit 902e59f974
14 changed files with 406 additions and 31 deletions
+10 -1
View File
@@ -19,6 +19,7 @@ const api: DirectifyIpcApi = {
restoreBackup: (zipPath) => ipcRenderer.invoke("backup:restore", zipPath),
searchBeatmaps: (query) => ipcRenderer.invoke("beatmaps:search", query),
getBeatmapSetById: (beatmapSetId) => ipcRenderer.invoke("beatmaps:getById", beatmapSetId),
installBeatmapSet: (set) => ipcRenderer.invoke("beatmaps:install", set),
readCollections: () => ipcRenderer.invoke("collections:read"),
@@ -27,7 +28,15 @@ const api: DirectifyIpcApi = {
checkForUpdate: () => ipcRenderer.invoke("app:checkForUpdate"),
openExternal: (url) => ipcRenderer.invoke("app:openExternal", url),
setTitleBarOverlay: (colors) => ipcRenderer.invoke("window:setTitleBarOverlay", colors),
minimizeWindow: () => ipcRenderer.invoke("window:minimize"),
toggleMaximizeWindow: () => ipcRenderer.invoke("window:toggleMaximize"),
closeWindow: () => ipcRenderer.invoke("window:close"),
isWindowMaximized: () => ipcRenderer.invoke("window:isMaximized"),
onWindowMaximizedChange: (callback) => {
const listener = (_e: unknown, maximized: boolean) => callback(maximized);
ipcRenderer.on("window:maximizedChange", listener);
return () => ipcRenderer.removeListener("window:maximizedChange", listener);
},
};
contextBridge.exposeInMainWorld("directify", api);