ThemeSwitcher.vue 447 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <v-switch
  3. v-model="theme.global.name.value"
  4. density="compact"
  5. :inline="true"
  6. false-value="light"
  7. false-icon="fas fa-sun"
  8. true-value="dark"
  9. true-icon="fas fa-moon"
  10. />
  11. </template>
  12. <script setup lang="ts">
  13. import { useTheme } from 'vuetify'
  14. const theme = useTheme()
  15. </script>
  16. <style scoped lang="scss">
  17. .v-switch {
  18. min-width: 60px;
  19. max-width: 60px;
  20. min-height: 40px;
  21. max-height: 40px;
  22. }
  23. </style>