improved dark mode, automatic theme switch (#5720)

This commit is contained in:
Kevin Papst
2025-12-19 23:51:27 +01:00
committed by GitHub
parent b61420d633
commit 8c1ed68817
90 changed files with 1855 additions and 1956 deletions

View File

@@ -2,13 +2,14 @@
{% if options.route is defined %}
{% set url = path(options.route, options.routeOptions|default([])) %}
{% endif %}
{% set color = options.color|default('green') %}
<div class="card card-sm">
<div class="card-body">
<div class="row align-items-center">
<div class="col-auto">
{% if not url is empty %}<a href="{{ url }}">{% endif %}
<span class="bg-{{ options.color|default('green') }} text-white avatar">
<span class="bg-{{ color }} text-{{ color }}-fg avatar">
{{ icon(options.icon, true) }}
</span>
{% if not url is empty %}</a>{% endif %}

View File

@@ -2,12 +2,13 @@
{% if options.route is defined %}
{% set url = path(options.route, options.routeOptions|default([])) %}
{% endif %}
{% set color = options.color|default('green') %}
<div class="card card-sm">
<div class="card-body">
<div class="row align-items-center">
<div class="col-auto">
<span class="bg-{{ options.color|default('green') }} text-white avatar">
<span class="bg-{{ color }} text-{{ color }}-fg avatar">
{{ icon(options.icon, true) }}
</span>
</div>