This repository has been archived by the owner on Sep 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from maotovisk/dev
fix toast notification not working as expected
- Loading branch information
Showing
10 changed files
with
101 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,38 @@ | ||
<script lang="ts"> | ||
import { appWindow } from "@tauri-apps/api/window"; | ||
import { onMount } from "svelte"; | ||
let darkMode: boolean = true; | ||
const onChange = () => { | ||
ui("mode", darkMode ? "dark" : "light"); | ||
}; | ||
onMount(async () => { | ||
darkMode = ui("mode") == "dark" ? true : false; | ||
}); | ||
</script> | ||
|
||
<div class="padding"> | ||
<h6>Settings</h6> | ||
<div class="small-divider" /> | ||
<div class="medium-height middle-align center-align"> | ||
<div class="center-align"> | ||
<i class="extra">info</i> | ||
<h5>Not implemented</h5> | ||
<p>This tab is not yet implemented</p> | ||
<div class="space" /> | ||
<div class="row max"> | ||
<div class="row max"> | ||
<div class="field middle-align max"> | ||
<nav> | ||
<div class="max"> | ||
<strong>Dark mode</strong> | ||
<div>Enable dark mode for the applicaiton</div> | ||
</div> | ||
<label class="switch"> | ||
<input | ||
type="checkbox" | ||
bind:checked={darkMode} | ||
on:change={onChange} | ||
/> | ||
<span /> | ||
</label> | ||
</nav> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |