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

@@ -9,6 +9,7 @@ process.on("unhandledRejection", (reason) => {
});
const { app } = require("electron");
const path = require("path");
const { logger, logSessionStart, logSessionEnd } = require("./server/logger");
const { AutoUpdater } = require("./app/autoUpdater");
@@ -16,6 +17,7 @@ const { startRPC, stopRPC } = require("./app/discordRPC");
const { configFeatures } = require("./config");
const config = require("./config");
const { initThemes } = require("./app/themeManager");
const { checkNativeDependencies } = require("./app/dependencyCheck");
const { updateYtDlp } = require("./app/ytDlpUpdater");
@@ -48,6 +50,12 @@ app.whenReady().then(async () => {
registerIpcHandlers(getMainWindow);
const themeFolderPath = config.localMode
? path.join(__dirname, "theme")
: path.join(process.resourcesPath, "theme");
await initThemes(themeFolderPath);
await createMainWindow();
if (configFeatures.discordRPC) startRPC();