Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

display-accessibility.blade.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. @props([
  2. 'icon' => null,
  3. ])
  4. <li class="grid grid-flow-col auto-cols-auto gap-x-2 items-start p-2">
  5. <div class="icon h-9 w-9 flex items-center justify-center rounded-full bg-gray-200 dark:bg-white/10">
  6. <x-filament::icon
  7. :icon="$icon"
  8. class="h-6 w-6 text-gray-600 dark:text-gray-200"
  9. />
  10. </div>
  11. <div>
  12. <div class="px-2 pb-2">
  13. <h2 class="text-gray-800 dark:text-gray-200 text-base font-semibold">
  14. {{ __('Dark mode') }}
  15. </h2>
  16. <p class="text-sm font-normal text-gray-500 dark:text-gray-400">
  17. {{ __('Adjust the appearance to reduce glare and give your eyes a break.') }}
  18. </p>
  19. </div>
  20. <!-- Custom radio buttons for Theme setting -->
  21. <template x-for="(label, value) in themeLabels" :key="value">
  22. <div class="cursor-pointer p-2 rounded-lg hover:bg-gray-50 focus-visible:bg-gray-50 dark:hover:bg-white/5 dark:focus-visible:bg-white/5" x-on:click="setTheme(value)">
  23. <label class="text-sm font-medium flex items-center justify-between cursor-pointer">
  24. <span x-text="label"></span>
  25. <input type="radio" class="sr-only" :id="'theme' + value" :name="'theme'" :value="value" x-model="theme">
  26. <span
  27. class="h-3 w-3 ring-2 rounded-full"
  28. x-bind:class="{
  29. 'border-2 border-white dark:border-gray-800 bg-primary-500 dark:bg-primary-400 ring-primary-500 dark:ring-primary-400': theme === value,
  30. 'ring-gray-400 dark:ring-gray-600': theme !== value
  31. }"
  32. ></span>
  33. </label>
  34. </div>
  35. </template>
  36. </div>
  37. </li>