Skip to content

Commit

Permalink
feat: dark mode is default now
Browse files Browse the repository at this point in the history
  • Loading branch information
PleahMaCaka committed Oct 30, 2023
1 parent abc8ce2 commit f12e60a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/sidebar/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import { stateStore } from "$lib/stores/StateStore"
import { DarkMode } from "$lib/utils/DarkMode"
let isDark = false
let isDark = true
let closingAnimation = false
$: isDark = JSON.parse(localStorage.getItem("isDark") || "false")
$: isDark = JSON.parse(localStorage.getItem("isDark") || "true")
$: isSettingsShow = (<boolean>$stateStore.showSettings)
const applyDark = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import "./styles.css"
onMount(() => {
const isDark = JSON.parse(localStorage.getItem("isDark") || "false")
const isDark = JSON.parse(localStorage.getItem("isDark") || "true")
DarkMode(isDark)
})
</script>
Expand Down

0 comments on commit f12e60a

Please sign in to comment.