Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions resources/views/components/theme-switcher/dropdown.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class="block rounded p-1 hover:bg-gray-100 dark:hover:bg-gray-800"
:class="theme ? 'text-gray-700 dark:text-gray-300' :
'text-gray-400 dark:text-gray-600 hover:text-gray-500 focus:text-gray-500 dark:hover:text-gray-500 dark:focus:text-gray-500'"
@click="menu = ! menu">
<x-laravel-exceptions-renderer::icons.sun class="block h-5 w-5 dark:hidden" />
<x-laravel-exceptions-renderer::icons.moon class="hidden h-5 w-5 dark:block" />
<x-converge::icons.light class="block h-5 w-5 dark:hidden" />
<x-converge::icons.dark class="hidden h-5 w-5 dark:block" />
</button>

<div x-show="menu"
Expand All @@ -70,19 +70,19 @@ class="absolute right-0 z-10 flex origin-top-right flex-col rounded-md bg-white
<button class="flex items-center gap-3 px-4 py-2 hover:rounded-t-md hover:bg-gray-100 dark:hover:bg-gray-700"
:class="theme === 'light' ? 'text-gray-900 dark:text-gray-100' : 'text-gray-500 dark:text-gray-400'"
@click="lightMode()">
<x-laravel-exceptions-renderer::icons.sun class="h-5 w-5" />
<x-converge::icons.light class="h-5 w-5" />
Light
</button>
<button class="flex items-center gap-3 px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"
:class="theme === 'dark' ? 'text-gray-900 dark:text-gray-100' : 'text-gray-500 dark:text-gray-400'"
@click="darkMode()">
<x-laravel-exceptions-renderer::icons.moon class="h-5 w-5" />
<x-converge::icons.dark class="h-5 w-5" />
Dark
</button>
<button class="flex items-center gap-3 px-4 py-2 hover:rounded-b-md hover:bg-gray-100 dark:hover:bg-gray-700"
:class="theme === undefined ? 'text-gray-900 dark:text-gray-100' : 'text-gray-500 dark:text-gray-400'"
@click="systemMode()">
<x-laravel-exceptions-renderer::icons.computer-desktop class="h-5 w-5" />
<x-converge::icons.system class="h-5 w-5" />
System
</button>
</div>
Expand Down
Loading