Skip to content

Commit

Permalink
Added Ignore Updates settings and moved Theme Selection to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
exejar committed Mar 12, 2024
1 parent a8a9565 commit 20bbe6d
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions src/components/pages/SettingsPage.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<script lang="ts">
import CheckboxSetting from "../util/settings/CheckboxSetting.svelte";
import {settings} from "../../scripts/store.js";
import {settings} from "../../scripts/stores.js";
import UpdateConfirmation from "../util/settings/UpdateConfirmation.svelte";
import {type SelectionOption, type Settings, Themes} from "../../scripts/types";
import {writeTextFile} from "@tauri-apps/api/fs";
import {getWeaveDirectory} from "../../scripts/shared";
import {getWeaveDirectory} from "../../scripts/paths";
import SelectionSetting from "../util/settings/SelectionSetting.svelte";
import {onMount} from "svelte";
let updateConfirmation: UpdateConfirmation
Expand Down Expand Up @@ -35,12 +34,25 @@
</script>

<div id="settings" class="relative w-full h-full px-24 py-6 flex flex-col overflow-y-scroll gap-6">
<SelectionSetting
title="Theme Selection"
description=""
options={themesArray}
bind:value={selectedTheme}
on:select={() => updateConfirmation.display()}
/>
<CheckboxSetting
bind:enabled={temporarySettings.auto_update}
title="Auto Update"
description="Automatically updates Weave-Loader and Weave-Manager"
on:toggle={() => updateConfirmation.display()}
/>
<CheckboxSetting
bind:enabled={temporarySettings.ignore_updates}
title="Ignore Updates"
description="Prevents update checks for Weave-Loader"
on:toggle={() => updateConfirmation.display()}
/>
<CheckboxSetting
bind:enabled={temporarySettings.startup_run}
title="Launch on Startup"
Expand All @@ -53,13 +65,6 @@
description="Compact buttons into a single button with dropdown selection"
on:toggle={() => updateConfirmation.display()}
/>
<SelectionSetting
title="Theme Selection"
description=""
options={themesArray}
bind:value={selectedTheme}
on:select={() => updateConfirmation.display()}
/>
</div>
<UpdateConfirmation bind:this={updateConfirmation} on:confirm={async() => await confirmUpdate()} on:reset={resetUpdate}/>

Expand Down

0 comments on commit 20bbe6d

Please sign in to comment.