Fix DiscordDark theme

This commit is contained in:
Jean Ouina 2020-08-12 00:48:16 +02:00
parent dd20bdea75
commit baaa67061a
2 changed files with 7 additions and 15 deletions

View File

@ -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);

View File

@ -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")