Merge pull request #2 from Miodec/master

fixed load from preset button not working
This commit is contained in:
UnrealApex 2021-04-08 11:02:03 -07:00 committed by GitHub
commit 9bcce1d365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -222,7 +222,7 @@ $(".pageSettings .saveCustomThemeButton").click((e) => {
$(".pageSettings #loadCustomColorsFromPreset").click((e) => {
// previewTheme(Config.theme);
ThemeController.preview(Config.theme);
$("#currentTheme").attr("href", `themes/${Config.theme}.css`);
ThemeController.colorVars.forEach((e) => {
document.documentElement.style.setProperty(e, "");

View file

@ -163,13 +163,13 @@ export function applyCustomBackground() {
}
export function applyCustomBackgroundSize() {
if (Config.customBackgroundSize == "max"){
if (Config.customBackgroundSize == "max") {
$(".customBackground").css({
backgroundSize: "100% 100%" ,
backgroundSize: "100% 100%",
});
} else if (Config.customBackgroundSize != "") {
$(".customBackground").css({
backgroundSize: Config.customBackgroundSize,
});
}
}
}