From dc631f01b875a7c6cd57be5a05120a42def4c33f Mon Sep 17 00:00:00 2001 From: Antonio Frignani Date: Sat, 20 Apr 2024 01:55:46 +0200 Subject: [PATCH] Allow dark and light theme customization (#387) --- src/View/Components/ThemeToggle.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/View/Components/ThemeToggle.php b/src/View/Components/ThemeToggle.php index 9f00f83c..4f698a34 100644 --- a/src/View/Components/ThemeToggle.php +++ b/src/View/Components/ThemeToggle.php @@ -14,6 +14,8 @@ public function __construct( public ?string $value = null, public ?string $light = "Light", public ?string $dark = "Dark", + public ?string $lightTheme = "light", + public ?string $darkTheme = "dark", public ?bool $withLabel = false, ) { @@ -26,9 +28,9 @@ public function render(): View|Closure|string