Burger-Menü am PC wählbar (0.41.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m39s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 6m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 6m51s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m28s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m40s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 9m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m27s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 43s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m52s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 18:21:59 +00:00
parent 1bf06167e4
commit 26d3242a11
134 changed files with 377 additions and 343 deletions

View file

@ -170,6 +170,7 @@ class Branding
'logo_dark_url' => $this->logoDarkUrl(),
'logo_mark_url' => $this->url($theme['logo_mark']),
'header_style' => $theme['header_style'],
'nav_style' => $theme['nav_style'] ?? 'bar',
'color_mode' => $this->forcedColorMode(),
'login' => [
'layout' => $theme['login_layout'],

View file

@ -23,6 +23,7 @@ class Theme
'primary_color' => '#0F4C5C',
'secondary_color' => null,
'header_style' => 'light',
'nav_style' => 'bar',
'font_body' => 'inter',
'font_heading' => 'same',
'custom_font' => null,
@ -45,6 +46,9 @@ class Theme
public const HEADER_STYLES = ['light' => 'Hell', 'brand' => 'In der Markenfarbe', 'dark' => 'Dunkel'];
/** Hauptmenü am PC: Leiste in der Kopfzeile oder – wie auf dem Handy – ein Burger-Menü */
public const NAV_STYLES = ['bar' => 'Leiste in der Kopfzeile', 'burger' => 'Burger-Menü (wie auf dem Handy)'];
public const RADII = ['none' => ['Eckig', '0rem'], 'small' => ['Leicht gerundet', '0.25rem'], 'medium' => ['Gerundet', '0.5rem'], 'large' => ['Stark gerundet', '0.75rem'], 'round' => ['Rund', '1rem']];
public const DENSITIES = ['compact' => ['Kompakt', '0.225rem'], 'normal' => ['Normal', '0.25rem'], 'comfortable' => ['Luftig', '0.275rem']];
@ -155,6 +159,7 @@ class Theme
$theme['primary_color'] = $hex($theme['primary_color']) ?? self::DEFAULTS['primary_color'];
$theme['secondary_color'] = $hex($theme['secondary_color']);
$theme['header_style'] = array_key_exists($theme['header_style'], self::HEADER_STYLES) ? $theme['header_style'] : 'light';
$theme['nav_style'] = array_key_exists((string) ($theme['nav_style'] ?? ''), self::NAV_STYLES) ? $theme['nav_style'] : 'bar';
$theme['font_body'] = array_key_exists($theme['font_body'], Fonts::FONTS) || ($theme['font_body'] === 'custom' && $theme['custom_font']) ? $theme['font_body'] : 'inter';
$theme['font_heading'] = $theme['font_heading'] === 'same' || array_key_exists($theme['font_heading'], Fonts::FONTS) || ($theme['font_heading'] === 'custom' && $theme['custom_font']) ? $theme['font_heading'] : 'same';
$theme['radius'] = array_key_exists($theme['radius'], self::RADII) ? $theme['radius'] : 'medium';