Use prefers-color-scheme to let the client make the light/dark choice
This commit is contained in:
parent
9944bfbb82
commit
82e77cdb99
31 changed files with 201 additions and 72 deletions
|
|
@ -1,15 +1,27 @@
|
|||
<?php
|
||||
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512); // Liste les dimensions des icones
|
||||
// List icons dimensions
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512);
|
||||
|
||||
$variablesTheme = array(
|
||||
"bg" => "#14678b",
|
||||
"bgField" => "#2186b1",
|
||||
"bgTextField" => "#2186b1",
|
||||
"bgHelp" => "#118abe",
|
||||
"border" => "#42a0c8",
|
||||
"borderHover" => "#87d1f1",
|
||||
"borderFocus" => "#e2f6ff",
|
||||
"text" => "#ffffff",
|
||||
"secondaryText" => "#bbe1f1"
|
||||
); // Définit les couleurs du thème
|
||||
$colorScheme = array(
|
||||
// Light theme
|
||||
"bg-light" => "#14678b",
|
||||
"bgField-light" => "#2186b1",
|
||||
"bgTextField-light" => "#2186b1",
|
||||
"bgHelp-light" => "#118abe",
|
||||
"border-light" => "#42a0c8",
|
||||
"borderHover-light" => "#87d1f1",
|
||||
"borderFocus-light" => "#e2f6ff",
|
||||
"text-light" => "#ffffff",
|
||||
"secondaryText-light" => "#bbe1f1",
|
||||
// Dark theme
|
||||
"bg-dark" => "#14678b",
|
||||
"bgField-dark" => "#2186b1",
|
||||
"bgTextField-dark" => "#2186b1",
|
||||
"bgHelp-dark" => "#118abe",
|
||||
"border-dark" => "#42a0c8",
|
||||
"borderHover-dark" => "#87d1f1",
|
||||
"borderFocus-dark" => "#e2f6ff",
|
||||
"text-dark" => "#ffffff",
|
||||
"secondaryText-dark" => "#bbe1f1"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue