rename rank.pompy.dev -> list.pompy.dev
This commit is contained in:
parent
767c892109
commit
ca9817102f
17 changed files with 5 additions and 5 deletions
31
apps/list/components/ThemeController.vue
Normal file
31
apps/list/components/ThemeController.vue
Normal file
|
@ -0,0 +1,31 @@
|
|||
<script setup>
|
||||
const colorMode = useColorMode()
|
||||
|
||||
const icon = computed(() => {
|
||||
switch (colorMode.preference) {
|
||||
case "system":
|
||||
return "material-symbols:monitor-outline"
|
||||
case "dark":
|
||||
return "material-symbols:moon-stars-outline"
|
||||
case "light":
|
||||
return "material-symbols:sunny-outline-rounded"
|
||||
default:
|
||||
return "material-symbols:monitor-outline"
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex justify-end gap-2 p-2">
|
||||
<Icon :name="icon" size="32" />
|
||||
|
||||
<select
|
||||
v-model="colorMode.preference"
|
||||
class="h-8 w-24 border dark:border-gray-700 dark:bg-gray-900 dark:text-white"
|
||||
>
|
||||
<option value="system">System</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="dark">Dark</option>
|
||||
</select>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue