Feat: Custom Theme features and clean the old one

This commit is contained in:
MasterAcnolo
2026-04-11 18:10:51 +02:00
parent 9f88fe19c3
commit 23d11d8933
26 changed files with 400 additions and 657 deletions

View File

@@ -1,7 +1,9 @@
const { ipcMain, dialog, shell } = require("electron");
const fs = require("fs");
const path = require("path");
const { logger, logDir } = require("../server/logger");
const { configFeatures, featuresPath } = require("../config");
const { configFeatures, featuresPath } = require("../config");
const { getThemes } = require("./themeManager");
const config = require("../config");
const { validateDownloadPath, getDefaultDownloadPath } = require("./pathValidator");
@@ -15,6 +17,7 @@ const FEATURE_WHITELIST = new Set([
"verboseLogs",
"autoDownloadPlaylist",
"customCodec",
"theme"
]);
const configFolderPath = featuresPath;
@@ -72,6 +75,8 @@ function registerIpcHandlers(getMainWindow) {
);
ipcMain.on("open-config", () => shell.openPath(configFolderPath));
ipcMain.handle("get-themes", () => getThemes());
// Modification des features
ipcMain.handle("set-feature", (event, { key, value }) => {
try {