Moved Dark Mode
This commit is contained in:
@@ -539,7 +539,7 @@ const footerLinks = [/*{
|
|||||||
<NotificationsSlideover />
|
<NotificationsSlideover />
|
||||||
|
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<LazyUDashboardSearch :groups="groups" />
|
<LazyUDashboardSearch :groups="groups" hide-color-mode/>
|
||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
</UDashboardLayout>
|
</UDashboardLayout>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -172,6 +172,15 @@ const calcWeeklyWorkingHours = () => {
|
|||||||
itemInfo.value.weeklyRegularWorkingHours[7]
|
itemInfo.value.weeklyRegularWorkingHours[7]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const colorMode = useColorMode()
|
||||||
|
const isLight = computed({
|
||||||
|
get() {
|
||||||
|
return colorMode.value !== 'dark'
|
||||||
|
},
|
||||||
|
set() {
|
||||||
|
colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark'
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -284,6 +293,20 @@ const calcWeeklyWorkingHours = () => {
|
|||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
|
|
||||||
|
<UDivider class="my-5">
|
||||||
|
Helligkeitseinstellung
|
||||||
|
</UDivider>
|
||||||
|
|
||||||
|
<UButton
|
||||||
|
:icon="!isLight ? 'i-heroicons-moon-20-solid' : 'i-heroicons-sun-20-solid'"
|
||||||
|
color="white"
|
||||||
|
variant="outline"
|
||||||
|
aria-label="Theme"
|
||||||
|
@click="isLight = !isLight"
|
||||||
|
>
|
||||||
|
{{!isLight ? "Hell" : "Dunkel"}}
|
||||||
|
</UButton>
|
||||||
|
|
||||||
<UDivider class="my-5">
|
<UDivider class="my-5">
|
||||||
E-Mail Signatur
|
E-Mail Signatur
|
||||||
</UDivider>
|
</UDivider>
|
||||||
|
|||||||
Reference in New Issue
Block a user