diff --git a/browser/VencordNativeStub.ts b/browser/VencordNativeStub.ts index dbd86aae1..db2416b29 100644 --- a/browser/VencordNativeStub.ts +++ b/browser/VencordNativeStub.ts @@ -24,6 +24,7 @@ import monacoHtmlLocal from "file://monacoWin.html?minify"; import * as DataStore from "@api/DataStore"; import type { Settings } from "@api/Settings"; +import { getThemeInfo } from "@main/themes"; import { debounce } from "@shared/debounce"; import { localStorage } from "@utils/localStorage"; import { getStylusWebStoreUrl } from "@utils/web"; @@ -43,7 +44,6 @@ window.VencordNative = { themes: { uploadTheme: (fileName: string, fileData: string) => DataStore.set(fileName, fileData, themeStore), deleteTheme: (fileName: string) => DataStore.del(fileName, themeStore), - getThemesDir: async () => "", getThemesList: () => DataStore.entries(themeStore).then(entries => entries.map(([name, css]) => getThemeInfo(css, name.toString())) ), diff --git a/src/main/ipcMain.ts b/src/main/ipcMain.ts index bdc98129e..06b748b38 100644 --- a/src/main/ipcMain.ts +++ b/src/main/ipcMain.ts @@ -87,7 +87,6 @@ ipcMain.handle(IpcEvents.SET_QUICK_CSS, (_, css) => writeFileSync(QUICK_CSS_PATH, css) ); -ipcMain.handle(IpcEvents.GET_THEMES_DIR, () => THEMES_DIR); ipcMain.handle(IpcEvents.GET_THEMES_LIST, () => listThemes()); ipcMain.handle(IpcEvents.GET_THEME_DATA, (_, fileName) => getThemeData(fileName)); ipcMain.handle(IpcEvents.DELETE_THEME, (_, fileName) => { diff --git a/src/shared/IpcEvents.ts b/src/shared/IpcEvents.ts index 0a3c12a56..e1927d735 100644 --- a/src/shared/IpcEvents.ts +++ b/src/shared/IpcEvents.ts @@ -24,7 +24,6 @@ export const enum IpcEvents { SET_QUICK_CSS = "VencordSetQuickCss", UPLOAD_THEME = "VencordUploadTheme", DELETE_THEME = "VencordDeleteTheme", - GET_THEMES_DIR = "VencordGetThemesDir", GET_THEMES_LIST = "VencordGetThemesList", GET_THEME_DATA = "VencordGetThemeData", GET_THEME_SYSTEM_VALUES = "VencordGetThemeSystemValues",