mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Implement darkmode using stimulus.
This commit is contained in:
parent
671e0944a2
commit
8ccf5652ab
3 changed files with 44 additions and 21 deletions
|
@ -58,9 +58,9 @@
|
|||
aria-hidden="true"></i> {% trans %}user.login{% endtrans %}</a>
|
||||
{% endif %}
|
||||
<li role="separator" class="dropdown-divider" id="toggleDarkmodeSeparator"></li>
|
||||
<div class="px-4 px-3" id="toggleDarkmodeContainer">
|
||||
<div class="px-4 px-3" id="toggleDarkmodeContainer hidden" {{ stimulus_controller('common/darkmode') }}>
|
||||
<div class="form-check form-switch">
|
||||
<input type="checkbox" class="form-check-input" id="toggleDarkmode">
|
||||
<input type="checkbox" class="form-check-input" id="toggleDarkmode" {{ stimulus_action('common/darkmode', 'toggleDarkmode', 'change') }}>
|
||||
<label class="form-check-label"
|
||||
for="toggleDarkmode">{% trans %}ui.toggle_darkmode{% endtrans %}</label>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue