Skip to content

Commit 979eefa

Browse files
committed
Theme-Editor: Accessibility Fluid Dark Variante hinzugefügt
1 parent 006e434 commit 979eefa

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

fragments/ConsentManager/theme_editor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</div>
2727
</div>
2828

29-
<?php if ('fluid' === $themeBase): ?>
29+
<?php if ('fluid' === $themeBase || 'fluid_dark' === $themeBase): ?>
3030
<div class="panel panel-warning">
3131
<div class="panel-heading">
3232
<h3 class="panel-title"><i class="rex-icon fa-exclamation-triangle"></i> Hinweis zur Barrierefreiheit bei Glaseffekt-Themes</h3>
@@ -99,7 +99,7 @@ class="btn <?= $themeBase === $key ? 'btn-primary' : 'btn-default' ?>">
9999
<span class="input-group-addon color-hex-display"><?= rex_escape($colors['background']) ?></span>
100100
</div>
101101
</div>
102-
<?php if ('fluid' === $themeBase): ?>
102+
<?php if ('fluid' === $themeBase || 'fluid_dark' === $themeBase): ?>
103103
<div class="form-group">
104104
<label for="background_opacity">Hintergrund-Transparenz: <span id="background_opacity_value"><?= rex_escape($colors['background_opacity'] ?? '100') ?>%</span></label>
105105
<input type="range" class="form-control" id="background_opacity" name="background_opacity" min="0" max="100" value="<?= rex_escape($colors['background_opacity'] ?? '100') ?>">
@@ -211,7 +211,7 @@ class="btn <?= $themeBase === $key ? 'btn-primary' : 'btn-default' ?>">
211211
<span class="input-group-addon color-hex-display"><?= rex_escape($colors['details_bg'] ?? '#f8f9fa') ?></span>
212212
</div>
213213
</div>
214-
<?php if ('fluid' === $themeBase): ?>
214+
<?php if ('fluid' === $themeBase || 'fluid_dark' === $themeBase): ?>
215215
<div class="form-group">
216216
<label for="details_bg_opacity">Hintergrund-Transparenz: <span id="details_bg_opacity_value"><?= rex_escape($colors['details_bg_opacity'] ?? '100') ?>%</span></label>
217217
<input type="range" class="form-control" id="details_bg_opacity" name="details_bg_opacity" min="0" max="100" value="<?= rex_escape($colors['details_bg_opacity'] ?? '100') ?>">

lib/Theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public static function generateA11yThemeScss(string $base, string $name, string
172172
$isBannerTop = ('banner_top' === $base);
173173
$isBannerBottom = ('banner_bottom' === $base);
174174
$isMinimal = ('minimal' === $base);
175-
$isFluid = ('fluid' === $base);
175+
$isFluid = ('fluid' === $base || 'fluid_dark' === $base);
176176
$isBanner = $isBannerTop || $isBannerBottom;
177177

178178
// Base values depending on theme type

pages/theme_editor.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
'banner_bottom' => 'Accessibility Banner (Bottom) - Banner unten',
2626
'minimal' => 'Accessibility Minimal - Ecke unten rechts',
2727
'fluid' => 'Accessibility Fluid - Responsive mit Glaseffekt',
28+
'fluid_dark' => 'Accessibility Fluid Dark - Responsive mit dunklem Glaseffekt',
2829
];
2930

3031
// Default colors
@@ -228,6 +229,41 @@
228229
'shadow_color' => '#6366f1',
229230
'shadow_opacity' => '15',
230231
],
232+
'fluid_dark' => [
233+
'accent' => '#a78bfa',
234+
'button_bg' => '#a78bfa',
235+
'button_text' => '#0f0f23',
236+
'button_hover' => '#c4b5fd',
237+
'button_hover_text' => '#0f0f23',
238+
'focus' => '#fbbf24',
239+
'link' => '#a78bfa',
240+
'link_hover' => '#c4b5fd',
241+
'details_link' => '#a78bfa',
242+
'details_link_hover' => '#c4b5fd',
243+
'details_toggle_border' => '#a78bfa',
244+
'details_toggle_border_width' => '2',
245+
'details_bg' => '#1e1e2e',
246+
'details_bg_opacity' => '95',
247+
'details_text' => '#cdd6f4',
248+
'details_heading' => '#ffffff',
249+
'details_border' => '#45475a',
250+
'details_border_opacity' => '50',
251+
'title' => '#ffffff',
252+
'background' => '#1e1e2e',
253+
'background_opacity' => '85',
254+
'text' => '#cdd6f4',
255+
'overlay' => '#000000',
256+
'overlay_opacity' => '60',
257+
'border_radius' => '16',
258+
'border_width' => '1',
259+
'button_style' => 'filled',
260+
'button_radius' => '12',
261+
'button_border_width' => '0',
262+
'button_border_color' => '#a78bfa',
263+
'shadow_style' => 'large',
264+
'shadow_color' => '#a78bfa',
265+
'shadow_opacity' => '20',
266+
],
231267
];
232268

233269
// Get current colors from form or defaults

0 commit comments

Comments
 (0)