feat: Custom CSS now also applies to settings window

This commit is contained in:
2023-08-28 16:38:08 +02:00
parent 68f76a9e63
commit eb91b66ac6
7 changed files with 160 additions and 29 deletions

View File

@@ -4,6 +4,7 @@ import fs from "fs";
import { globalEvents } from "../../constants/globalEvents";
import { settings } from "../../constants/settings";
import { Logger } from "../../features/logger";
import { addCustomCss } from "../../features/theming/theming";
import { settingsStore } from "./../../scripts/settings";
import { getOptions, getOptionsHeader, getThemeListFromDirectory } from "./theming";
@@ -49,6 +50,8 @@ let adBlock: HTMLInputElement,
discord_details_prefix: HTMLInputElement,
discord_button_text: HTMLInputElement;
addCustomCss(app, Logger.bind(this));
function getThemeFiles() {
const selectElement = document.getElementById("themesList") as HTMLSelectElement;
const builtInThemes = getThemeListFromDirectory(process.resourcesPath);