Theme Manager test

This commit is contained in:
smartfridge 2021-05-14 18:01:52 +02:00
parent 38edef38ee
commit 9608851fa2
3 changed files with 9 additions and 1 deletions

View file

@ -2,7 +2,7 @@ const customTitlebar = require("custom-electron-titlebar");
const electronLocalshortcut = require("electron-localshortcut");
const { remote } = require("electron");
const ArmCord = require("./utils/ArmCord.js");
require('./utils/theme.js')
window.addEventListener("DOMContentLoaded", () => {
new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex("#202225"),

7
utils/theme.js Normal file
View file

@ -0,0 +1,7 @@
const themeFolder = __dirname + "/themes/";
const fs = require("fs");
const armcord = require("./armcord.js")
fs.readdirSync(themeFolder).forEach((file) => {
armcord.addStyle(fs.readFileSync(file))
console.log(file)
});

View file

@ -0,0 +1 @@
@import url('https://Goose-Nest.github.io/GT-RevertRebrand/src/main.css');