mirror of
https://github.com/mmvanheusden/SteamDepotDownloaderGUI.git
synced 2026-02-04 05:31:19 +01:00
fix: settings modal
This commit is contained in:
@@ -198,13 +198,12 @@ $(async () => {
|
||||
});
|
||||
|
||||
$("#settings-button").on("click", async () => {
|
||||
$("#settings-surrounding").css("display", "block");
|
||||
$("#settings-surrounding").toggle();
|
||||
});
|
||||
|
||||
$("#settings-surrounding").on("click", (event) => {
|
||||
if (event.target === document.getElementById("settings-surrounding")) {
|
||||
$("#settings-surrounding").css("display", "none");
|
||||
|
||||
$("#settings-surrounding").toggle();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -43,4 +43,5 @@ function setTheme(theme: string) {
|
||||
$("#theme-light").attr("aria-selected", String(theme === "light"));
|
||||
$("#theme-dark").attr("aria-selected", String(theme === "dark"));
|
||||
$("#theme").attr("data-color-mode", theme);
|
||||
localStorage.theme = theme;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user