diff --git a/modules/discord_desktop_core/core/app/BetterDiscord/assets/DiscordDark.theme.css b/modules/discord_desktop_core/core/app/BetterDiscord/assets/DiscordDark.theme.css deleted file mode 100644 index 97a1c80..0000000 --- a/modules/discord_desktop_core/core/app/BetterDiscord/assets/DiscordDark.theme.css +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @name Dark Discord - * @version 1.0 - * @description An actual dark mode for discord. - * @source https://github.com/zzzmario/dark-discord - * @authorId 583062692596547585 - * @author mario - * @donate https://paypal.me/zzzmario - * @invite sSeBYs -**/ - -@import url(https://cdn.jsdelivr.net/gh/hellbound1337/dark-discord/src/source.min.css); \ No newline at end of file diff --git a/modules/discord_desktop_core/core/app/BetterDiscord/index.js b/modules/discord_desktop_core/core/app/BetterDiscord/index.js index 69d36ec..de188f9 100644 --- a/modules/discord_desktop_core/core/app/BetterDiscord/index.js +++ b/modules/discord_desktop_core/core/app/BetterDiscord/index.js @@ -209,9 +209,13 @@ async function privateInit(){ /** Downloads Basic Themes to guide user and showcase features */ /** Discord Dark */ - const DiscordDarkPath = path.join(themePath, "DiscordDark.theme.css") - const themeContent = fs.readFileSync(path.join(__dirname, "assets", "DiscordDark.theme.css"), "utf8") - fs.writeFileSync(DiscordDarkPath, themeContent, "utf8") + const GlasscordExamplePath = path.join(themePath, "DarkDiscord.theme.css") + fetch("https://raw.githubusercontent.com/hellbound1337/dark-discord/master/DarkDiscord.theme.css") + .then(async res => { + if(res.status !== 200)return + const content = await res.buffer() + fs.writeFileSync(GlasscordExamplePath, content) + }) /** Glasscord Example */ const GlasscordExamplePath = path.join(themePath, "glasscord_example.theme.css")