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

@@ -1,5 +1,10 @@
{% block dd_timesheet %}
{% import "macros/widgets.html.twig" as widgets %}
{% import "calendar/widgets.html.twig" as calendar %}
{{ calendar.dd_event(widgets.label_color(entry.title, entry.color), entry.project ? widgets.label_customer(entry.project.customer) : null, entry.project ? widgets.label_project(entry.project) : null, null) }}
{% if entry.activity is not null %}
{% set title = widgets.label_activity(entry.activity, entry.activity.color) %}
{% else %}
{% set title = widgets.label_color(entry.title, entry.color) %}
{% endif %}
{{ calendar.dd_event(title, entry.project ? widgets.label_customer(entry.project.customer) : null, entry.project ? widgets.label_project(entry.project) : null, null) }}
{% endblock %}