mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Fix theme loading
This commit is contained in:
parent
9985c8cabe
commit
5e10467bf7
2 changed files with 3 additions and 3 deletions
|
@ -2,13 +2,13 @@ const customTitlebar = require("custom-electron-titlebar");
|
||||||
const electronLocalshortcut = require("electron-localshortcut");
|
const electronLocalshortcut = require("electron-localshortcut");
|
||||||
const { remote } = require("electron");
|
const { remote } = require("electron");
|
||||||
const ArmCord = require("./utils/ArmCord.js");
|
const ArmCord = require("./utils/ArmCord.js");
|
||||||
|
require("./utils/theme.js");
|
||||||
window.addEventListener("DOMContentLoaded", () => {
|
window.addEventListener("DOMContentLoaded", () => {
|
||||||
new customTitlebar.Titlebar({
|
new customTitlebar.Titlebar({
|
||||||
backgroundColor: customTitlebar.Color.fromHex("#202225"),
|
backgroundColor: customTitlebar.Color.fromHex("#202225"),
|
||||||
menu: false,
|
menu: false,
|
||||||
});
|
});
|
||||||
require("./utils/theme.js");
|
|
||||||
const currentWindow = remote.getCurrentWindow();
|
const currentWindow = remote.getCurrentWindow();
|
||||||
electronLocalshortcut.register(currentWindow, "F5", () => {
|
electronLocalshortcut.register(currentWindow, "F5", () => {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const armcord = require("./armcord.js");
|
const armcord = require("./armcord.js");
|
||||||
const themeFolder = __dirname + "/themes/";
|
const themeFolder = __dirname + "/themes/";
|
||||||
console.log("Theme Module Loaded")
|
|
||||||
window.addEventListener("DOMContentLoaded", () => {
|
window.addEventListener("DOMContentLoaded", () => {
|
||||||
|
console.log("Theme Module Loaded");
|
||||||
fs.readdirSync(themeFolder).forEach((file) => {
|
fs.readdirSync(themeFolder).forEach((file) => {
|
||||||
console.log(file);
|
console.log(file);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue