mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Some further dark-mode fixes, added toggle to homepage
- Homepage toggle especially useful for not-logged-in users since they do not have a dropdown.
This commit is contained in:
@ -72,15 +72,7 @@
|
||||
</li>
|
||||
<li><hr></li>
|
||||
<li>
|
||||
<form action="{{ url('/settings/users/toggle-dark-mode') }}" method="post">
|
||||
{{ csrf_field() }}
|
||||
{{ method_field('patch') }}
|
||||
@if(setting()->getForCurrentUser('dark-mode-enabled'))
|
||||
<button>@icon('light-mode'){{ trans('common.light_mode') }}</button>
|
||||
@else
|
||||
<button>@icon('dark-mode'){{ trans('common.dark_mode') }}</button>
|
||||
@endif
|
||||
</form>
|
||||
@include('partials.dark-mode-toggle')
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user