feat: custom achievement sound and volume changing)

This commit is contained in:
Moyasee
2025-11-07 17:48:56 +02:00
parent 754e9c14b8
commit a6cbaf6dc1
21 changed files with 583 additions and 46 deletions

View File

@@ -571,6 +571,14 @@ contextBridge.exposeInMainWorld("electron", {
getActiveCustomTheme: () => ipcRenderer.invoke("getActiveCustomTheme"),
toggleCustomTheme: (themeId: string, isActive: boolean) =>
ipcRenderer.invoke("toggleCustomTheme", themeId, isActive),
copyThemeAchievementSound: (themeId: string, sourcePath: string) =>
ipcRenderer.invoke("copyThemeAchievementSound", themeId, sourcePath),
removeThemeAchievementSound: (themeId: string) =>
ipcRenderer.invoke("removeThemeAchievementSound", themeId),
getThemeSoundPath: (themeId: string) =>
ipcRenderer.invoke("getThemeSoundPath", themeId),
importThemeSoundFromStore: (themeId: string, themeName: string, storeUrl: string) =>
ipcRenderer.invoke("importThemeSoundFromStore", themeId, themeName, storeUrl),
/* Editor */
openEditorWindow: (themeId: string) =>