Feat: Add theme folder access functionality in UI

This commit is contained in:
MasterAcnolo
2026-04-11 18:25:17 +02:00
parent 23d11d8933
commit 49e1e1b507
5 changed files with 21 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ const FEATURE_WHITELIST = new Set([
const configFolderPath = featuresPath;
const themeFolderPath = config.localMode
? path.join(__dirname, "..", "theme")
: path.join(process.resourcesPath, "theme");
function registerIpcHandlers(getMainWindow) {
// Infos générales
@@ -75,6 +79,8 @@ function registerIpcHandlers(getMainWindow) {
);
ipcMain.on("open-config", () => shell.openPath(configFolderPath));
ipcMain.on("open-theme", () => shell.openPath(themeFolderPath));
ipcMain.handle("get-themes", () => getThemes());
// Modification des features