mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
Compare commits
1 Commits
dark-mode
...
dark-actio
| Author | SHA1 | Date | |
|---|---|---|---|
| 150380791f |
@ -16,13 +16,6 @@ defineProps({
|
|||||||
|
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
|
||||||
const isDark = ref(
|
|
||||||
localStorage.getItem('theme') === 'dark'
|
|
||||||
|| document.documentElement.classList.contains('dark'),
|
|
||||||
)
|
|
||||||
|
|
||||||
globalStore.isDarkModeOn = isDark
|
|
||||||
|
|
||||||
const enabled = computed({
|
const enabled = computed({
|
||||||
get: () => globalStore.isDarkModeOn,
|
get: () => globalStore.isDarkModeOn,
|
||||||
set: (value) => {
|
set: (value) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user