Add light/dark theme switch
CI / Deploy / test (push) Successful in 46s
CI / Deploy / deploy (push) Skipped

Theme follows the system by default; the header switch cycles
auto/light/dark and is stored per browser. The presenter has its own
switch (T), dark by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 16:15:14 +01:00
1 parent f0c6687100
commit 58145e9753
9 files changed
+187 -18

No files matched your search

+2
View File
@@ -16,6 +16,7 @@ $title = $this->fetch('title');
<meta name="robots" content="noindex, nofollow">
<?php endif; ?>
<title><?= $title ? h($title) . ' · ' : '' ?>Plenario</title>
<?= $this->element('theme_init') ?>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
<?= $this->fetch('meta') ?>
@@ -31,6 +32,7 @@ $title = $this->fetch('title');
<a href="<?= $this->Url->build(['_name' => 'join']) ?>"><?= __('Teilnehmen') ?></a>
<a href="<?= $this->Url->build(['_name' => 'recover']) ?>"><?= __('Admin-Link verloren?') ?></a>
</nav>
<?= $this->element('theme_switch') ?>
</div>
</header>
<main class="container main">
+1
View File
@@ -12,6 +12,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<title><?= h($this->fetch('title')) ?> · Plenario</title>
<?= $this->element('theme_init') ?>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
</head>
+2 -1
View File
@@ -1,6 +1,6 @@
<?php
/**
* Full screen presenter layout (dark, no navigation).
* Full screen presenter layout (dark by default, own theme switch in the controls, no navigation).
*
* @var \App\View\AppView $this
*/
@@ -13,6 +13,7 @@
<meta name="robots" content="noindex, nofollow">
<meta name="csrf-token" content="<?= h((string)$this->request->getAttribute('csrfToken')) ?>">
<title><?= h($this->fetch('title')) ?> · Plenario</title>
<?= $this->element('theme_init', ['key' => 'plenario-theme-present', 'fallback' => 'dark']) ?>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
</head>